Skip to content

Commit

Permalink
use vendor flag
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya committed Aug 30, 2024
1 parent 6c3cc2c commit 9d3f9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/module-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: go-mod-why
run: |
for MODULE in "${RESTRICTED[@]}"; do
OUTPUT=$(go mod why "$MODULE")
OUTPUT=$(go mod why -vendor "$MODULE")
if echo "$OUTPUT" | grep -q "main module does not need package $MODULE"; then
echo "$MODULE is not a direct import ✓"
else
Expand Down

0 comments on commit 9d3f9fb

Please sign in to comment.