Files
webhooker/internal/versionscript/doc.go
clawbot ee2276a912
All checks were successful
check / check (push) Successful in 3m12s
Stamp the build version into the binary (closes #253)
2026-08-24 03:15:20 +02:00

13 lines
656 B
Go

// Package versionscript holds the tests for script/version and for the
// build files that consume it. It carries no runtime code: the version
// string is produced by a shell script at build time and reaches the
// binary through a linker flag, so nothing in the Go build graph can
// assert it, but the behaviour still has to be verified by the test
// suite.
//
// The files under test are outside the Go build graph, so `go test`'s
// result cache serves a stale PASS when only script/version, the
// Makefile or the Dockerfile changed: run the container build, or
// GOFLAGS=-count=1, to trust a result here after editing them.
package versionscript