Skip to content

Commit

Permalink
Add info how to fix go imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sleshchenko committed Apr 21, 2021
1 parent 38e6210 commit 792c087
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
git reset HEAD --hard
if [[ $(find . -not -path "./vendor/*" -name '*.go' -exec goimports -l {} \;) != "" ]]
then
echo "not well formatted sources are found:"
echo "not well organized imports are found."
echo "execute `find . -not -path "./vendor/*" -name '*.go' -exec goimports -l {} \;` to fix the following:"
find . -not -path "./vendor/*" -name '*.go' -exec goimports -l {} \;
exit 1
fi

0 comments on commit 792c087

Please sign in to comment.