MCPcopy Create free account
hub / github.com/basecamp/hey-cli / Full

Function Full

internal/version/version.go:23–28  ·  view source on GitHub ↗

Full returns the full version string for display.

()

Source from the content-addressed store, hash-verified

21 info, ok := debug.ReadBuildInfo()
22 Version, fromBuildInfo = classify(Version, info, ok)
23}
24
25// classify decides what a binary reports itself as. An ldflags-stamped version stands as
26// stamped. An unstamped ("dev") binary adopts the toolchain-recorded module version only
27// for a true `go install module@version` build. A build from a source checkout is still a
28// dev build — Go stamps such a build's main-module version with a pseudo-version derived
29// from the checkout's VCS state, which is exactly the shape a `go install` build reports,
30// and the difference is that only the checkout build carries the VCS settings. So a
31// version with vcs metadata behind it stays "dev".

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected