Skip to content

Commit

Permalink
FAB-1: Avoid goimports errors during make linter
Browse files Browse the repository at this point in the history
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 <bgorman@au1.ibm.com>
  • Loading branch information
Brad Gorman committed Aug 3, 2016
1 parent c1b13e3 commit 8def03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/goimports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare -a arr=("./consensus" "./core" "./events" "./examples" "./membersrvc" ".

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

0 comments on commit 8def03a

Please sign in to comment.