version

package
v1.5.1-0...-475df33 Latest Latest
Warning

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

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

Documentation

Overview

Package version holds the Go backend's own release version, mirroring scripts/version.js's pkg.version (package.json is the Node build's source of truth; this package is the Go build's).

Index

Constants

View Source
const Current = "0.10.3"

Current is the Relay release version, without a leading "v". Bump this alongside package.json's "version" field per the release tagging convention (tags on master, no "v" prefix).

Variables

View Source
var BuildCommit string

BuildCommit is optionally populated by release builds through -ldflags. Docker builds do not include the .git directory, so CI supplies the source revision explicitly for :latest images.

Functions

func Commit

func Commit() string

Commit returns the abbreviated VCS revision recorded when the binary was built, or an empty string when build information is unavailable.

func String

func String() string

String returns "v<Current>", or "source (<commit> / v<Current>)" when the binary was built with VCS stamping (the default for `go build` inside a git checkout), mirroring scripts/version.js's getVersion().

Types

This section is empty.

Jump to

Keyboard shortcuts

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