-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
The associated file is either missing or is an invalid symlink #20408
Comments
…ilding without the bytes. This is the same bug as bazelbuild#19143, except that the fix in 3a48457 missed the case where the symlink occurs inside an output directory. Fixes bazelbuild#20408.
Are you sure the provided example is representative of this scenario? None of the symlinks created by Assuming that the example is as intended: this is the same bug as #19143, except that the fix didn't handle the case where the symlink is tucked inside an output directory. Similar to the original issue, it regressed between 6.2.0 and 6.3.0, but has been fixed in 7.0.0. I have a draft PR with a fix at #20409 (against 6.4.0) but I don't know whether further 6.x releases are planned. /cc @meteorcloudy |
My description of the problem may be off but this is the exact scenario I have in my repo.
So this issue is fixed in 7.0? When I try building with
|
The fix I described is for the The |
I get the same error on |
Ok, so that's a different bug in 7.0.0rc5. Can you double check that the repro in the first post of this issue is correct, and also include the Bazel flags you're using? It looks like you're using a build event service, but I played around with some BEP-related flags and couldn't reproduce it. |
There may not be a dangling symlink in this case but this an exact copy of a failure I see in my larger repo. I've been testing with the following
All I did to setup a remote cache and BES was go to https://www.buildbuddy.io/ and used their free tier. Building is simply
Run once to populate the remote cache, which succeeds, then the second invocation will catch the error. |
Thanks, I managed to reproduce it. I'll look into a fix next week. |
…ilding without the bytes. This is the same bug as bazelbuild#19143, except that the fix in 3a48457 missed the case where the symlink occurs inside an output directory. Fixes bazelbuild#20408.
…ilding without the bytes. This is the same bug as bazelbuild#19143, except that the fix in 3a48457 missed the case where the symlink occurs inside an output directory. Fixes bazelbuild#20408.
I'm not following exactly what the issue is here, but I'm getting a very similar error message out of 7.0.0 (which I don't think I was getting from 6.4.0) while tying to build something depending on an If this is unrelated, I'd be happy to open a new issue, but I'd prefer to avoid spamming.
|
@bcsgh I think your issue is bazel-contrib/rules_oci#425 and not a bug in Bazel. |
A fix for this issue has been included in Bazel 6.5.0 RC1. Please test out the release candidate and report any issues as soon as possible. Thanks! |
Description of the bug:
I have custom rules that create symlinks that at the time of the build are intentionally broken links that are then fed into another rule that composes them into an artifact where the links are valid. I'm trying to upgrade to Bazel 6.3.0 and am running into the following error when I get remote cache hits using
--remote_download_toplevel
.This did not occur on Bazel 6.2.1. Is there an incompatibility flag that I can use to restore the previous behavior?
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Using the following workspace, I'm able to build on Bazel 6.3.0 with a remote cache configured to see the bug. Building on Bazel 6.2.1 does not observe the issue.
e430bf04f9d2e5e4a3a82f54993514d05d4224b2decf65b353175f0fb1bc2a3a
.bazelrc
BUILD.bazel
action.sh
defs.bzl
Which operating system are you running Bazel on?
Linux, MacOS
What is the output of
bazel info release
?release 6.3.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
This is a regression but I do not know the commit it was produced on.
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: