MCPcopy
hub / github.com/go-task/task / GetVersion

Function GetVersion

internal/version/version.go:48–50  ·  view source on GitHub ↗

GetVersion returns the version of Task. By default, this is retrieved from the embedded version.txt file which is kept up-to-date by our release script. However, it can also be overridden at build time using: -ldflags="-X 'github.com/go-task/task/v3/internal/version.version=vX.X.X'".

()

Source from the content-addressed store, hash-verified

46// However, it can also be overridden at build time using:
47// -ldflags="-X 'github.com/go-task/task/v3/internal/version.version=vX.X.X'".
48func GetVersion() string {
49 return version
50}
51
52// GetVersionWithBuildInfo is the same as [GetVersion], but it also includes
53// the commit hash and dirty status if available. This will only work when built

Callers 2

doVersionChecksMethod · 0.92
getSpecialVarsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…