Skip to content

Commit

Permalink
scripts: fix goimports import path
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored and arekkas committed Oct 25, 2017
1 parent 4f5df70 commit 65743b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/run-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ set -euo pipefail

cd "$( dirname "${BASH_SOURCE[0]}" )/.."

goimports -w $(go list -f {{.Dir}} ./... | grep -v vendor | grep -v oathkeeper$)
goimports -w $(go list -f {{.Dir}} ./... | grep -v vendor | grep -v fosite$)
goimports -w *.go
2 changes: 1 addition & 1 deletion scripts/test-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail

cd "$( dirname "${BASH_SOURCE[0]}" )/.."

toformat=$(goimports -l $(go list -f {{.Dir}} ./... | grep -v vendor | grep -v 'oathkeeper$'))
toformat=$(goimports -l $(go list -f {{.Dir}} ./... | grep -v vendor | grep -v 'fosite$'))
[ -z "$toformat" ] && echo "All files are formatted correctly"
[ -n "$toformat" ] && echo "Please use \`goimports\` to format the following files:" && echo $toformat && exit 1

Expand Down

0 comments on commit 65743b4

Please sign in to comment.