-
Notifications
You must be signed in to change notification settings - Fork 18k
doc: add a documentation page for reproducible builds #53976
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
Comments
How about adding a help page for the go command for this? Like go help testflags we could have go help reproducible? |
That's also an option, but I think we've been gradually moving the documentation to the website. Note how |
Which, as a consummate terminal user, I think is not a good evolution. For an example of what i like better, git help even opens man pages. For longer topics go help could open or refer to go doc pages. |
If you want to suggest a different overall strategy to documentation, I would suggest to open a new issue, because otherwise we're going to get off-topic. This thread is about adding one new documentation page. |
I think probably the wiki is the right answer for the moment. We'd like to move that to Gerrit (with self-review allowed by known contributors) at some point, which will help with the "anyone can edit" part and also with search engines indexing the wiki. |
Re-reading #51812, and looking at
With cgo disabled, So it seems to me that, if we do want Personally I would lean towards |
Another reason to lean towards |
This is a great effort. Appreciate the care about raising awareness about |
Much agreed. But adding various behaviour to |
Documenting |
See #51812 (comment) and #51812 (comment). There are a number of Go users and developers who think Go supports reproducible builds out of the box, and some others who think Go doesn't fully support reproducible builds. Neither of those is true - they are supported, but only if you do it right.
We should have a documentation page (ideally on the website, like #42119) to document this. Essentially, we want the docs to cover everything that one needs to consider to make builds reproducible, such as:
-trimpath
flag-tags
,GOOS
,GOAMD64
, etc) are recordedThe last two are already covered thanks to build information stamping, I think. See how
go version -m
on a binary built with Go 1.18 or later records practically all Go build parameters.This umbrella issue aims to track this work, and ensure the documentation page will cover everything that's needed before we write it. Am I missing anything in the list above?
We could also simply go with a GitHub wiki page, but just like #42119, I am reluctant to go that route as wiki pages can be edited by any user, and this would be fairly important canonical advice where any patches should be carefully reviewed on Gerrit.
The text was updated successfully, but these errors were encountered: