Build: Add -buildvcs=false flag to go build (#109472)
This commit is contained in:
@@ -203,6 +203,10 @@ func doBuild(binaryName, pkg string, opts BuildOpts) error {
|
||||
args = append(args, "-race")
|
||||
}
|
||||
|
||||
// We should not publish Grafana as a Go module, disabling vcs changes the version to (devel)
|
||||
// and works better with SBOM and Vulnerability Scanners.
|
||||
args = append(args, "-buildvcs=false")
|
||||
|
||||
args = append(args, "-o", binary)
|
||||
args = append(args, pkg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user