Issue Details
- Number
- 29935
- Title
- guix: SOURCE_DATE_EPOCH is already set in some environments
- Description
- The environment variable `SOURCE_DATE_EPOCH` allows overriding the date that will be used inside the archives for guix-built binaries. This is an intentional feature, as documented in `contrib/guix/README.md`:
> * _**SOURCE_DATE_EPOCH**_
>
> Override the reference UNIX timestamp used for bit-for-bit reproducibility,
> the variable name conforms to [standard][r12e/source-date-epoch].
>
> _(defaults to the output of `$(git log --format=%at -1)`)_
However, some environments, as apparently Nix, set `SOURCE_DATE_EPOCH` by default. This can be extremely confusing, as it results in mismatches. i see three options:
- Show a big red warning when the Guix build scripts are called with an existing `SOURCE_DATE_EPOCH`. Most likely it's not what the user wanted, but they can continue if they wanted.
- Disallow overriding `SOURCE_DATE_EPOCH` - unset it at start.
- Rename our `SOURCE_DATE_EPOCH` to something non-standard that doesn't conflict with Nix.
The first one has my preference.
See bitcoin-core/guix.sigs#1201 which prompted this.
- URL
-
https://github.com/bitcoin/bitcoin/issue/29935
- Closed by
-
Back to List