{"modulePath":"github.com/CommitBrief/commitbrief","version":"v1.23.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package version\n\n## Variables\n\n```go\nvar (\n\tVersion = \"dev\"\n\tCommit  = \"none\"\n\tDate    = \"unknown\"\n)\n```\nVersion, Commit, and Date are set at link time by goreleaser/\\`make build\\` via -ldflags. When the binary is built without that injection — most importantly \\`go install github.com/CommitBrief/commitbrief/cmd/commitbrief@vX.Y.Z\\` — Resolve() backfills them from the Go module BuildInfo (see Resolve doc).\n\n## Functions\n\n```go\nfunc Info() string\n```\n\n```go\nfunc Resolve()\n```\nResolve fills Version/Commit/Date from runtime/debug.BuildInfo when they still hold their compile-time defaults. ldflags-injected values always win, so production binaries (brew, scoop, GitHub Releases tarballs) are unaffected. \\`go install …@vX.Y.Z\\` benefits: Main.Version becomes \"vX.Y.Z\" and the VCS settings carry the upstream commit and build timestamp, so --version stops reporting \"dev (commit none, built unknown)\".\n\nNot auto-called via init(): existing tests assert the bare defaults, and main() is the single right place to opt in.\n\n","path":"github.com/CommitBrief/commitbrief/internal/version","name":"version","synopsis":"","isRedistributable":true}
