We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a9ec17 commit aeba018Copy full SHA for aeba018
1 file changed
hack/update/licenses.sh
@@ -24,6 +24,14 @@ OUTDIR="LICENSES" # under $ROOT
24
# Ensure the tool is built and up-to-date
25
GO_LICENSES_BIN="$(bash "${ROOT}/hack/run-tool.sh" --print-bin-path go-licenses)"
26
27
+# go-licenses runs in temporary verification worktrees that do not have enough
28
+# VCS metadata for Go's build stamping.
29
+if [[ -n "${GOFLAGS:-}" ]]; then
30
+ export GOFLAGS="${GOFLAGS} -buildvcs=false"
31
+else
32
+ export GOFLAGS="-buildvcs=false"
33
+fi
34
+
35
# Clean out previous licenses
36
rm -rf "${OUTDIR}"
37
mkdir -p "${OUTDIR}"
0 commit comments