Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dangling symbolic link error #3

Merged
merged 1 commit into from
May 21, 2024

Conversation

curtismuntz
Copy link
Contributor

I'm getting a build error on master attempting to build example/...:

❯ bazel build example/...
INFO: Analyzed 16 targets (0 packages loaded, 0 targets configured).
ERROR: /home/user/code/rule_oci_bundle/example/BUILD.bazel:26:11: error while validating output tree artifact example/bundle: child blobs/sha256/da1f367b9b83905089e31bd02bafdac6e406df391cb49fea7c23c8a2e8461520 is a dangling symbolic link
ERROR: /home/user/code/rule_oci_bundle/example/BUILD.bazel:26:11: OCI Bundle //example:bundle failed: not all outputs were created or valid
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.103s, Critical Path: 0.04s
INFO: 3 processes: 2 internal, 1 linux-sandbox.
ERROR: Build did NOT complete successfully

Looking upstream, I discovered this PR in rules_oci: bazel-contrib/rules_oci#525

For what it's worth, I'm compiling your project using

❯ bazel version
Bazelisk version: v1.19.0
Build label: 7.1.2
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Wed May 8 20:49:55 2024 (1715201395)
Build timestamp: 1715201395
Build timestamp as int: 1715201395

@curtismuntz
Copy link
Contributor Author

I tested your project on bazel 5.4 and 6.2, both of which succeeded successfully. This might just be a problem with bazel 7.x

@hunshcn
Copy link
Owner

hunshcn commented May 21, 2024

Right, due to bazelbuild/bazel#19915

It breaks on bazel 7.x

@hunshcn hunshcn merged commit 9391536 into hunshcn:master May 21, 2024
@curtismuntz curtismuntz deleted the curtismuntz/symlink-error branch May 22, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants