Le mardi 21 mai 2019 à 17:31 +0200, Brian (bex) Exelbierd a écrit : > > > > BUILDDATE=$(date +%Y-%m-%d) > > > > Please don't do that, that breaks build reproducibility. > > My understanding is that reproducible build systems typically provide > a build date value.
A reproducible build means the same inputs produce the same (bit- perfect) outputs. Putting a date in the produced builds breaks that. The people Fedora and Debian-side that work on making builds reproducible and auditable have been hunting down this kind of breakage for years, yet people keep reintroducing them. Just don't put build dates into produced files. It's an anti-pattern https://reproducible-builds.org/ “First, the build system needs to be made entirely deterministic: transforming a given source must always create the same result. For example, the current date and time must not be recorded and output always has to be written in the same order.” Regards, -- Nicolas Mailhot _______________________________________________ golang mailing list -- golang@lists.fedoraproject.org To unsubscribe send an email to golang-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org