Skip to content

Commit 8def03a

Browse files
author
Brad Gorman
committed
FAB-1: Avoid goimports errors during make linter
Vendoring doesn't work unless you run from $GOPATH/src/hyperledger/fabric. Previous fix attempted to correct package name assumptions, but this fix works better and won't keep breaking. Change-Id: Ib2489eb98d363be6a51a4fad5022f6b5e4d7f784 Signed-off-by: Bradley Gorman <[email protected]>
1 parent c1b13e3 commit 8def03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/goimports.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ declare -a arr=("./consensus" "./core" "./events" "./examples" "./membersrvc" ".
66

77
for i in "${arr[@]}"
88
do
9-
OUTPUT="$(goimports -l $i)"
9+
OUTPUT="$(goimports -srcdir $GOPATH/src/github.com/hyperledger/fabric -l $i)"
1010
if [[ $OUTPUT ]]; then
1111
echo "The following files contain goimports errors"
1212
echo $OUTPUT

0 commit comments

Comments
 (0)