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

Pass -trimpath to cgo in stdlib action #3569

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fmeum
Copy link
Member

@fmeum fmeum commented May 23, 2023

When go install invokes cgo, we need to pass -trimpath, but there doesn't seem to be a way to influence the command line. Instead, use filterbuildid to inject the argument.

This resolves one source of non-hermeticity when building the stdlib with the hermetic C++ toolchain, but another one remains.

When `go install` invokes `cgo`, we need to pass `-trimpath`, but there
doesn't seem to be a way to influence the command line. Instead, use
`filterbuildid` to inject the argument.

This resolves one source of non-hermeticity when building the stdlib
with the hermetic C++ toolchain, but another one remains.
@fmeum fmeum requested a review from linzhp May 23, 2023 15:43
@fmeum fmeum marked this pull request as ready for review May 23, 2023 16:30
@fmeum
Copy link
Member Author

fmeum commented May 23, 2023

There is an interesting failure in //tests/core/go_plugins. @linzhp Do you have experience with this?

@fmeum
Copy link
Member Author

fmeum commented May 23, 2023

Seems hard to get right: golang/go#27751

Edit: Also related to golang/go#51955.

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.

1 participant