version

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package version carries build metadata stamped into the binary at link time.

Index

Constants

This section is empty.

Variables

View Source
var Revision = "unknown"

Revision is the VCS revision of the build. Container builds inject it via -ldflags "-X github.com/flare-foundation/tee-proxy/internal/version.Revision=<sha>" because the .git directory is absent from the build context, so debug.ReadBuildInfo cannot recover vcs.revision there. It defaults to "unknown" for a plain `go build`, where metrics.buildInfo falls back to the vcs.revision build setting instead.

View Source
var Version = "dev"

Version is the human-facing release version (a semver tag). Release container builds inject it via -ldflags from the Git tag; it defaults to "dev" for a plain `go build` and for non-release images.

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