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

worried-painter-31382

07/28/2022, 2:55 PM
Shot in the dark but maybe you can save me some work: Running pants in aws codebuild, I use custom caching of the folder
cdk.out
, which apparently means symlink shenanigans:
Copy code
14:47:31.25 [INFO] Initializing scheduler...
14:47:31.43 [INFO] Scheduler initialized.
14:47:31.97 [ERROR] 1 Exception encountered:
Exception: Failed to read link "/codebuild/output/src157654992/src/cdk.out": Absolute symlink: "/codebuild/local-cache/custom/34f023ad3ffa4b6cff760e0246a80119a65a53c5011ff63d5e880846cbd15928/cdk.out"
1
The pants invocation:
./pants publish amra/<snip>/Dockerfile
I have
pants_ignore_use_gitignore = true
in the
pants.toml
and
cdk.out/
in
.gitignore
adding
/cdk.out
to
.gitignore
did the trick.
🔥 1
4 Views