rich-london-74860
08/12/2022, 3:11 PM./pants roots
and ./pants list ::
(or any goal using ::
), then …
1. both commands work locally
2. both work when running in a docker container for the image used in CI/CD
3. in CI/CD, roots
works as expected, and has the same output as 1 and 2 but list
gets the error:
15:09:10.80 [ERROR] 1 Exception encountered:
ResolveError: No targets found for the address glob `::`
Do targets exist in those directories? Maybe run `./pants tailor` to generate BUILD files? See <https://www.pantsbuild.org/v2.12/docs/targets> about targets and BUILD files.
Why might this be different in this case?happy-kitchen-89482
08/12/2022, 3:46 PMrich-london-74860
08/12/2022, 3:53 PMhappy-kitchen-89482
08/12/2022, 4:00 PMhappy-kitchen-89482
08/12/2022, 4:00 PM./pants roots
doesn’t look at BUILD files, but ./pants list ::
doeshappy-kitchen-89482
08/12/2022, 4:01 PMrich-london-74860
08/12/2022, 4:02 PM.gitignore
included build
for other reasons, which effectively ignore BUILD
happy-kitchen-89482
08/12/2022, 4:03 PMhappy-kitchen-89482
08/12/2022, 4:03 PMhappy-kitchen-89482
08/12/2022, 4:03 PMhappy-kitchen-89482
08/12/2022, 4:04 PMhappy-kitchen-89482
08/12/2022, 4:04 PMBUILD.something
without any config changeshappy-kitchen-89482
08/12/2022, 4:04 PMhappy-kitchen-89482
08/12/2022, 4:04 PMrich-london-74860
08/12/2022, 4:08 PM