Documentation
¶
Overview ¶
Package version holds the sf release version so both the CLI (`sf --version`) and `sf doctor` report the same string without an import cycle between internal/cli and internal/common/doctor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is the sf release version. A release build overrides it via
-ldflags "-X github.com/sofia-ctx/sofia/internal/version.Version=..."
(see scripts/build.sh and .goreleaser.yml). When it isn't set that way — most importantly a `go install github.com/sofia-ctx/sofia/cmd/sf@vX.Y.Z`, the primary way a newcomer installs — init() below recovers the version from the module's build info. A plain `go build`/`go run` of a checkout has no module version, so it stays "dev".
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.