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

Trim absolute paths in files generated by cgo #3011

Merged
merged 1 commit into from
Nov 29, 2021

Commits on Nov 18, 2021

  1. Trim absolute paths in files generated by cgo

    The cgo command generates .c files that contain //line comments
    referencing source files by absolute paths into the Bazel cache. As the
    contents of these comments end up in the symbol table of the resulting
    c-archive, this makes Bazel-built CGo binaries non-reproducible.
    
    This is fixed by passing the -trimpath argument to cgo to trim the
    Bazel execroot prefix from these paths.
    
    Fixes bazelbuild#3010.
    fmeum committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    cc86e36 View commit details
    Browse the repository at this point in the history