acoustic-library-86413
09/11/2023, 1:21 PMpants package ::
means it will always be built. Is it possible to centrally disable this target, such that it is never selected unless explicitly specified? This is to prevent all of my developers from having to use `
pants --tag='-annoying_project' package ::
narrow-vegetable-37489
09/11/2023, 1:26 PMtag
in your pants.toml if you want -annoying_project
to be the default, so that’d be one way to do it. Makes using --tag
in the command line slightly more annoying those since you have to append to the list if you want to keep the defaults.acoustic-library-86413
09/11/2023, 1:32 PMtag
in the pants.toml does allow me to avoid it on the command line. However, is it possible to override it on the command line? Using pants --tag="annoying_project" package /path/to/annoying/project/Dockerfile
does not seem to build it either.acoustic-library-86413
09/11/2023, 1:36 PMlate-advantage-75311
09/11/2023, 1:40 PMpants --tag='+type_checked,skip_lint' --tag='-integration_test' list ::
will add to the list. I think there will be a way to supply the whole list. Have you tried --tag="[annoying_project]"
?late-advantage-75311
09/11/2023, 1:41 PMYou can also leave off theso your cli argument is being added to theto append elements.[]
-annoying_project
from pants.toml and the exclude is winninglate-advantage-75311
09/11/2023, 1:42 PM--tag="['annoying_project']"
should do itacoustic-library-86413
09/11/2023, 1:43 PM[]
. That works!