MCPcopy Create free account
hub / github.com/go-task/task / getCommit

Function getCommit

internal/version/version.go:35–42  ·  view source on GitHub ↗
(info *debug.BuildInfo)

Source from the content-addressed store, hash-verified

33}
34
35func getCommit(info *debug.BuildInfo) string {
36 for _, setting := range info.Settings {
37 if setting.Key == "vcs.revision" {
38 return setting.Value[:7]
39 }
40 }
41 return ""
42}
43
44// GetVersion returns the version of Task. By default, this is retrieved from
45// the embedded version.txt file which is kept up-to-date by our release script.

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…