Skip to content

Buildinfo is not always available #59

@06kellyjac

Description

@06kellyjac

I package for nixpkgs and in our builds we don't have .git either because we fetch the release source tar.gz which doesn't have .git or we do a git clone and then delete the .git dir because it's not reproducible.

I believe debian also handles things in a similar way since someone working on debian posted a script that should be able to clean up the .git dir

NixOS/nixpkgs#100498 (comment) (cc: @Nihlus)

We could apply the script to the .git dir and keep it but just being able to set the ldflags is probably still desirable, especially since there are some cases of people complaining about buildinfo breaking reproducibility and people wanting to strip it

golang/go#52372

And after https://go-review.googlesource.com/c/go/+/414794/ -trimpath will allow for removing it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions