Documentation
¶
Overview ¶
Package version carries the build identity of the workloom CLI.
The identity comes from, in priority order:
-ldflags -X overrides (release pipeline), then
the module version stamped by the Go toolchain: the release tag for `go install …@vX.Y.Z`, or a pseudo-version (v0.1.8-0.20260921…-abc) for a plain repository `go build` — Go fills debug.ReadBuildInfo().Main.Version whenever VCS metadata exists, then
the development marker, for source exports without VCS metadata (where Main.Version is "(devel)").
The commit short hash (from VCS stamping) is appended whenever known.
go build -ldflags "-X github.com/JAYY513/Workloom/internal/version.Version=0.1.0 \
-X github.com/JAYY513/Workloom/internal/version.Commit=$(git rev-parse --short HEAD)" \
-o bin/workloom ./cmd/workloom
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Commit = "unknown"
Commit is the source revision this binary was built from, when known.
var Version = devMarker
Version is the semantic version of this build, when injected at build time.
Functions ¶
Types ¶
This section is empty.