diff options
| author | Filippo Valsorda <filippo@golang.org> | 2024-12-12 17:12:41 +0100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-12-12 13:15:07 -0800 |
| commit | 2a8b895514c4e52860e9c0b1ef8626db3ea36bf5 (patch) | |
| tree | b591185d9c7946b243024b8e1a31d5cbe45735f9 | |
| parent | 4cfc485e363b9a1d52f0ff0bc77025aa9287d2d6 (diff) | |
| download | go-x-website-2a8b895514c4e52860e9c0b1ef8626db3ea36bf5.tar.xz | |
_content/doc/go1.24: reword VCS version stamping note
I struggled to map the old ones to the behavior described in
golang/go#50603: a pseudo-version will be generated even if a VCS tag is
available, but is not the latest commit.
Also, a link to BuildInfo.Main feels useful.
For golang/go#68545
Change-Id: Id2642c94a18e22ac56439728f20f01bf87d14a70
Reviewed-on: https://go-review.googlesource.com/c/website/+/635598
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Sam Thanawalla <samthanawalla@google.com>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
| -rw-r--r-- | _content/doc/go1.24.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_content/doc/go1.24.md b/_content/doc/go1.24.md index e10d8790..6af6b8ad 100644 --- a/_content/doc/go1.24.md +++ b/_content/doc/go1.24.md @@ -71,10 +71,10 @@ private module fetches. See `go help goauth` for more information. <!-- go.dev/issue/50603 --> -The `go build` command now includes versioning information in the compiled binary. -If a local VCS tag is available, the main module's version will be set from that tag. -If no local VCS tag is available, a pseudo-version will be generated. -A +dirty suffix will be appended if there are uncommitted VCS changes present. +The `go build` command now sets the +[main module's version](/pkg/runtime/debug#BuildInfo.Main) in the compiled +binary based on the version control system tag and/or commit. +A `+dirty` suffix will be appended if there are uncommitted changes. Use the `-buildvcs=false` flag to omit version control information from the binary. <!-- go.dev/issue/63939 --> |
