version

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package version is the single source of truth for the build version string. The variables here are overridden at build time via -ldflags:

go build \
	-ldflags "-X github.com/lenaxia/llmsafespaces/pkg/version.Version=v0.5.1
	          -X github.com/lenaxia/llmsafespaces/pkg/version.CommitSHA=<sha>
	          -X github.com/lenaxia/llmsafespaces/pkg/version.BuildTime=<ts>"

When unset (e.g. an un-stamped local build), all three report "unknown" so a missing injection is obvious. The release workflow sets them from the git tag, sha, and build time.

Each component that exposes a version surface (API /livez, /v1/admin/platform-info; workspace-agentd /v1/healthz; the controller startup log; the relay healthz endpoints) reads from here so we never have two competing version strings.

Index

Constants

This section is empty.

Variables

View Source
var BuildTime = "unknown"

BuildTime is the UTC build timestamp. Overridden at build time. See package doc.

View Source
var CommitSHA = "unknown"

CommitSHA is the git commit the binary was built from. Overridden at build time. See package doc.

View Source
var Version = "unknown"

Version is the build version. Overridden at build time. See package doc.

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