version

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL