File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ jobs:
52
52
- go.mod
53
53
- go.sum
54
54
EOF
55
- module=$(grep ^module go.mod | awk '{print $2}')
56
- go list -f '{{ join .Deps "\n" }}' cmd/windows | grep ^$module/ | while read pkg ; do
57
- echo "- ${pkg#${module}/}/*" >> $filter
55
+
56
+ sh hack/go-list.sh cmd/windows | while read f ; do
57
+ echo "- $f" | tee -a $filter
58
58
done
59
-
59
+
60
60
- uses : dorny/paths-filter@v2
61
61
id : filter
62
62
with :
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ path=$1
6
+ module=$( grep ^module " $( dirname $0 ) /../go.mod" | awk ' {print $2}' )
7
+ go list -f ' {{ join .Deps "\n" }}' -compiled ./$path /... | grep ^$module / | while read pkg; do
8
+ d=" ${pkg# ${module} / } "
9
+ go list -f ' {{ join .CompiledGoFiles "\n" }}' -compiled ./$d | while read f; do
10
+ echo " $d /$f "
11
+ done
12
+ done
You can’t perform that action at this time.
0 commit comments