https://pantsbuild.org/ logo
#general
Title
# general
n

nice-florist-55958

10/23/2022, 8:12 PM
Some developers of our codebase will have environments where docker build is not allowed. Is there any way to make packaging docker_image targets fail with a warning instead of error? What is a minimal targets filter to exclude this type from a :: glob (or selection w/ new semantics)?
h

happy-kitchen-89482

10/23/2022, 10:39 PM
./pants package --filter-target-type="-docker_image" ::
You can replace
package
with
list
to see which targets would be selected
And you can use CLI aliasing to make an even shorter command for this: https://www.pantsbuild.org/docs/reference-cli#alias
4 Views