Skip to content

Commit 66748c0

Browse files
authored
Merge pull request #19463 from ivanvc/use-go-mod-in-deps-check
scripts: Use go mod instead of go list to get dependencies
2 parents 3763a67 + cbc14d7 commit 66748c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ function bom_pass {
508508

509509
function dump_deps_of_module() {
510510
local module
511-
if ! module=$(run go list -m); then
511+
if ! module=$(run go mod edit -json | jq -r .Module.Path); then
512512
return 255
513513
fi
514514
run go mod edit -json | jq -r '.Require[] | .Path+","+.Version+","+if .Indirect then " (indirect)" else "" end+",'"${module}"'"'

0 commit comments

Comments
 (0)