[FR]: Support adding testonly
to a glob of folders/files with gazelle plugin
#669
Labels
testonly
to a glob of folders/files with gazelle plugin
#669
What is the current behavior?
You can't isolate out a folder and say "for this folder, please give me source targets and add
testonly
to make sure this folder doesn't get used in production". This means we can do build file generation on a folder likemocks
but we have to manually addtestonly
.Describe the feature
We should be able to pass a directive like
#gazelle:treat_as_testonly **/mocks/**
that will generate targets in anymocks
folder found, but addtestonly
to thets_project
target. This prevents anything from mocks being used downstream and ending up in production.The text was updated successfully, but these errors were encountered: