github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/govet.sh (about) 1 #!/usr/bin/env bash 2 3 # Copy Proto files to GOPATH 4 mkdir -p "$GOPATH"/src/github.com/ronaksoft/rony 5 cp ./*.proto "$GOPATH"/src/github.com/ronaksoft/rony 6 7 # Generate codes 8 go generate ./... || exit 9 10 # Make sure the code guide lines are met 11 go vet ./... || exit 12 13 # Format the code 14 dirs=$(go list -f {{.Dir}} ./...) 15 for d in $dirs; do goimports -w $d/*.go; done 16 17 #go fmt ./... || exit 18 19 go install ./cmd/protoc-gen-gorony 20 go install ./cmd/rony 21 22 23 24 golangci-lint run