Files
burrowers-garble/testdata/script/modinfo.txtar
Daniel Martí 2adfc43326 bump unsupportedGo to mark Go 1.24 as supported
debugdir.txtar also needed tweaking as runtime/map.go is gone
starting in Go 1.24.

Finally, modinfo.txtar needed tweaking since Go 1.24 started stamping
Go binaries with VCS-derived module versions, so we no longer end up
with empty "(devel)" versions.
2025-02-09 21:41:54 +01:00

37 lines
1.0 KiB
Plaintext

[exec:git] exec git init -q
[exec:git] exec git config user.name "name"
[exec:git] exec git config user.email "name@email.local"
[exec:git] exec git add go.mod main.go
[exec:git] exec git commit -q -m 'very unique commit message'
[exec:git] exec git rev-parse HEAD
[exec:git] setenvfile HEAD_COMMIT_SHA stdout
exec garble build -tags veryuniquebuildtag
go version -m main$exe
stdout 'main(\.exe)?: unknown'
stdout -count=1 '^.+$' # expect just one line
! binsubstr main$exe '(devel)' 'v0.0.0-202' 'veryuniquebuildtag' ${HEAD_COMMIT_SHA}
[short] stop # no need to verify this with -short
go build -tags veryuniquebuildtag
go version -m main$exe
stdout 'path\s*test/main'
[go1.24] stdout 'mod\s*test/main\s*v0\.0\.0-202\d'
stdout 'build\s*-tags=veryuniquebuildtag'
stdout 'build\s*vcs.revision='${HEAD_COMMIT_SHA}
binsubstr main$exe 'veryuniquebuildtag' ${HEAD_COMMIT_SHA}
[go1.24] binsubstr main$exe 'v0.0.0-202'
-- go.mod --
module test/main
go 1.23
-- main.go --
package main
func main() { println("hello world") }