forked from celenium-io/celestia-indexer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.dev.sh
executable file
·26 lines (18 loc) · 892 Bytes
/
init.dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#################################################### VCS config
git config --local core.attributesfile ./.gitattributes
########################################### Install third tools
# linter
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.1 # as long we use go@1.20
# for generating swagger specification
go install github.com/swaggo/swag/cmd/swag@latest
# for generating enum types
curl -fsSL "https://github.com/abice/go-enum/releases/download/v0.5.7/go-enum_$(uname -s)_$(uname -m)" -o ${GOPATH}/bin/go-enum
chmod +x ${GOPATH}/bin/go-enum
go install go.uber.org/mock/mockgen@main
# for checking licenses used by project and deps
go install github.com/google/go-licenses@latest
# for api test, should have npm installed
npm install -g newman
# for setting up license header in each source code file
go install github.com/vvuwei/update-license@v0.0.1