[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request #41 from rizalgowandy/arwego/chore/setup_script
Browse files Browse the repository at this point in the history
Add gomodifytags on setup script
  • Loading branch information
rizalgowandy committed May 17, 2022
2 parents 8dc4b2c + 87c417d commit 76fad50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ echo -e "\e[32mInstalling:\e[33m golangci-lint for linter.\e[0m"
command -v golangci-lint 2>/dev/null || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)"/bin v1.33.0
echo ""

echo -e "\e[32mInstalling:\e[33m gomodifytags for generating tags.\e[0m"
command -v gomodifytags 2>/dev/null || go install -v github.com/fatih/gomodifytags@v1.16.0
echo ""

echo -e "\e[32mSetup:\e[33m pre-commit hook.\e[0m"
file=.git/hooks/pre-commit
cp scripts/pre-commit.sh $file
Expand Down

0 comments on commit 76fad50

Please sign in to comment.