Skip to content

Commit ba87efb

Browse files
committed
Migrate bom command to use a Go workspace
Remove `GOFLAGS=-mod=mod` from the execution of license-bill-of-materials. Signed-off-by: Ivan Valdes <[email protected]>
1 parent 26d5b25 commit ba87efb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ function bom_pass {
483483
run cp go.sum go.sum.tmp || return 2
484484
run cp go.mod go.mod.tmp || return 2
485485

486-
output=$(GOFLAGS=-mod=mod run_go_tool github.com/appscodelabs/license-bill-of-materials \
486+
output=$(run_go_tool github.com/appscodelabs/license-bill-of-materials \
487487
--override-file ./bill-of-materials.override.json \
488488
"${modules[@]}")
489489
code="$?"

scripts/updatebom.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function bom_fixlet {
1414
# shellcheck disable=SC2207
1515
modules=($(modules_for_bom))
1616

17-
if GOFLAGS=-mod=mod run_go_tool "github.com/appscodelabs/license-bill-of-materials" \
17+
if run_go_tool "github.com/appscodelabs/license-bill-of-materials" \
1818
--override-file ./bill-of-materials.override.json \
1919
"${modules[@]}" > ./bill-of-materials.json.tmp; then
2020
cp ./bill-of-materials.json.tmp ./bill-of-materials.json

0 commit comments

Comments
 (0)