Skip to content

Replace BUILD_TIME with SOURCE_DATE_EPOCH for reproduceable builds #4221

@ainar-g

Description

@ainar-g

Currently, we compile in the date of the build. And we compile it in as plain text.

Reproducible-Builds.org recommends using the commit date instead, given through the environment variable SOURCE_DATE_EPOCH and as a Unix timestamp. This should improve the life of people building their own AGH, such as package maintainers, since this will only require a shallow clone of the repo and the “correct” Go version to build a bit-by-bit identical copy of a binary.

The documentation in scripts/README.md obviously should be updates as well.

@jamesmacwhite, @yurivict, @simonbcn, if I recall correctly, you maintain AdGuard Home packages? Do you have any objections to this?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions