version

package
v0.1.0-proto2g Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package version carries goblin's own build-time version string and nothing else.

It does NOT mirror gapi's core/version, though it claimed to until GOBLIN-DIV-052: that package holds the renderer, the build metadata and the active-binary identity, and this one holds a single string. Mirroring the name while sharing none of the shape is what let both Goblin binaries print cobra's anonymous one-liner while appearing to have a version story.

The renderer is the kernel's, deliberately - one implementation for all four binaries (cli-contract.md). Goblin's roots pass the string below to gapi/pkg/cli's constructors, which register it through core/version.SetBinaryNameAndVersion, so a Goblin binary reports both its own version and the version of the kernel it embeds.

The root VERSION file is the single source of version truth; magelib.Version() resolves it at build time.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is injected at build time via -ldflags "-X github.com/goppydae/goblin/internal/version.Version=<v>".

Commit, build date, built-by, Go version and platform are NOT here. They live in the kernel's core/version and reach the shared block from there; a field would belong here only if goblin's build injected a value the kernel's could not.

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