-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
GoStdlib includes absolute paths in the output #3994
Comments
The situation as I understand it:
The simplest fix I see would be to extend the existing |
@AlessandroPatti Could you test the fix in #4005? |
@fmeum Yes, it works on the repro! I'll try later on the original use case I had. It should also be applied to the stdliblist action? |
I actually prefer your solution as the more principled one, so please send a PR if possible. A |
What version of rules_go are you using?
0.48.0
What version of gazelle are you using?
N/A
What version of Bazel are you using?
7.2.1
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Linux x86_64, but can repro on any platform
Any other potentially useful information about your toolchain?
Custom crosstool, using LLVM toolchain and custom sysroot. The crosstool setup find the sysroot and sets -I and -L to the correct relative paths
What did you do?
I am building a simple go binary, but the generated stdlib archives contain absolute paths. Looks like paths passed to the linker are expanded to absolute paths and stored in the object files. repro.zip contains a minimal repro:
What did you expect to see?
Fully hermetic and reproducible builds
What did you see instead?
The full path in the output causes the output digest to change, reducing cache hits
The text was updated successfully, but these errors were encountered: