Skip to content

Commit 2a8b895

Browse files
FiloSottilegopherbot
authored andcommitted
_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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Sam Thanawalla <[email protected]> Auto-Submit: Filippo Valsorda <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Michael Matloob <[email protected]>
1 parent 4cfc485 commit 2a8b895

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_content/doc/go1.24.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ private module fetches. See `go help goauth` for more information.
7171

7272
<!-- go.dev/issue/50603 -->
7373

74-
The `go build` command now includes versioning information in the compiled binary.
75-
If a local VCS tag is available, the main module's version will be set from that tag.
76-
If no local VCS tag is available, a pseudo-version will be generated.
77-
A +dirty suffix will be appended if there are uncommitted VCS changes present.
74+
The `go build` command now sets the
75+
[main module's version](/pkg/runtime/debug#BuildInfo.Main) in the compiled
76+
binary based on the version control system tag and/or commit.
77+
A `+dirty` suffix will be appended if there are uncommitted changes.
7878
Use the `-buildvcs=false` flag to omit version control information from the binary.
7979

8080
<!-- go.dev/issue/63939 -->

0 commit comments

Comments
 (0)