Skip to content

Commit 5bb72fa

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 03b03d8 commit 5bb72fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ function bom_pass {
519519
# BOM file should be generated for linux. Otherwise running this command on other operating systems such as OSX
520520
# results in certain dependencies being excluded from the BOM file, such as procfs.
521521
# For more info, https://github.com/etcd-io/etcd/issues/19665
522-
output=$(GOOS=linux GOFLAGS=-mod=mod run_go_tool github.com/appscodelabs/license-bill-of-materials \
522+
output=$(GOOS=linux run_go_tool github.com/appscodelabs/license-bill-of-materials \
523523
--override-file ./bill-of-materials.override.json \
524524
"${modules[@]}")
525525
code="$?"

scripts/updatebom.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function bom_fixlet {
3030
# BOM file should be generated for linux. Otherwise running this command on other operating systems such as OSX
3131
# results in certain dependencies being excluded from the BOM file, such as procfs.
3232
# For more info, https://github.com/etcd-io/etcd/issues/19665
33-
if GOOS=linux GOFLAGS=-mod=mod run_go_tool "github.com/appscodelabs/license-bill-of-materials" \
33+
if GOOS=linux run_go_tool "github.com/appscodelabs/license-bill-of-materials" \
3434
--override-file ./bill-of-materials.override.json \
3535
"${modules[@]}" > ./bill-of-materials.json.tmp; then
3636
cp ./bill-of-materials.json.tmp ./bill-of-materials.json

0 commit comments

Comments
 (0)