Commit ab10f29
committed
fix: stop snapshot builds claiming to be a release
.Tag is the last release tag even under --snapshot, so every snapshot stamped
v1.1.0 and IsRelease then pinned doc URLs to a tag the build has nothing to do
with. Snapshots now stamp the snapshot version, v1.1.0-SNAPSHOT-090323e.
Stamping the literal `dev` would not have worked: resolve() treats dev as
unstamped and replaces it from debug.ReadBuildInfo, which yields a Go
pseudo-version — correct, but it would show up in --version and the User-Agent
as v1.1.1-0.20260730115333-090323eb8be5+dirty.
beep boop1 parent cae365b commit ab10f29
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | | - | |
| 10 | + | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
0 commit comments