boundless-zebra-79556
03/01/2023, 5:47 PMpantsbuild/actions/init-pants@v4-scie-pants
, when running pants tailor --check ::
I'm seeing this cryptic message:
Would create BUILD:
- Add shell_sources target root
To fix `tailor` failures, run `pants tailor`.
Error: Process completed with exit code 1.
I don't have anything named root
in my repo. Also, when running tailor command locally, it succeeds. Is this something GHA creates? Any workaround on this issue?enough-analyst-54434
03/01/2023, 5:50 PMscie-pants
(pants
) and ./pants
is that scie-pants will search up from the CWD it is invoked in for pants.toml
whereas ./pants
is naturally rooted in the root of your repo side-by-side with pants.toml
. Is CWD what you think it is in CI? Is it the repo root?boundless-zebra-79556
03/01/2023, 5:57 PMpants.toml
in the root dir of the repo, and I used to run ./pants
instead of pants
and it worked fine, so I'm not really sure what's changedenough-analyst-54434
03/01/2023, 6:08 PMs|./pants|pants|
?boundless-zebra-79556
03/01/2023, 6:08 PMpantsbuild/actions/init-pants@v4-scie-pants
from ...@v2
enough-analyst-54434
03/01/2023, 6:08 PMsparse-lifeguard-95737
03/01/2023, 6:09 PMget-pants.sh
script lying around?sparse-lifeguard-95737
03/01/2023, 6:09 PMenough-analyst-54434
03/01/2023, 6:09 PMboundless-zebra-79556
03/01/2023, 6:09 PMsparse-lifeguard-95737
03/01/2023, 6:09 PMBUILD.pants
)enough-analyst-54434
03/01/2023, 6:10 PMenough-analyst-54434
03/01/2023, 6:10 PMsparse-lifeguard-95737
03/01/2023, 6:10 PMrm
the script after running it: https://github.com/pantsbuild/actions/blob/v4-scie-pants/init-pants/action.yaml#L65-L76sparse-lifeguard-95737
03/01/2023, 6:10 PMsparse-lifeguard-95737
03/01/2023, 6:11 PM/tmp
instead of .
and then not worry about cleanupenough-analyst-54434
03/01/2023, 6:11 PMenough-analyst-54434
03/01/2023, 6:12 PMsparse-lifeguard-95737
03/01/2023, 6:12 PMenough-analyst-54434
03/01/2023, 6:13 PMsparse-lifeguard-95737
03/01/2023, 6:14 PMrm get-pants.sh
into your CI job before you run pants tailor --check
, if you’re under pressureenough-analyst-54434
03/01/2023, 6:16 PMboundless-zebra-79556
03/01/2023, 6:16 PMsparse-lifeguard-95737
03/01/2023, 6:22 PM