version

package
v0.7.14-dev.10 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package version carries the CLI's build-stamped version.

Index

Constants

This section is empty.

Variables

View Source
var Version = devVersion

Version is set at build time via -ldflags "-X github.com/blaktron/agentry-cli/internal/version.Version=v1.2.3".

Functions

func Build

func Build() string

Build names this binary for the plan cache: a compiled run plan records it (spec.Plan.CompiledBy), and a plan recorded by another build is recompiled, because the compiler's output can change while the plan schema does not.

A stamped release is named by its version, which is unique to the commit it was built from. An unstamped build (0.0.0-dev) or a dirty one (describe's -dirty suffix) carries the same version across code changes — the hosted worker's CLI was built unstamped, so every worker build kept the plans an older CLI had cached and ran them. Its name adds a digest of the running executable instead: another binary is another build, and the same binary (a reproducible -trimpath build of the same source included) is the same build. Computed once per process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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