diff --git a/scripts/test.sh b/scripts/test.sh index b7932bbad17..e7176dfce25 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -508,7 +508,7 @@ function bom_pass { function dump_deps_of_module() { local module - if ! module=$(run go list -m); then + if ! module=$(run go mod edit -json | jq -r .Module.Path); then return 255 fi run go mod edit -json | jq -r '.Require[] | .Path+","+.Version+","+if .Indirect then " (indirect)" else "" end+",'"${module}"'"'