generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 95
/
Makefile
27 lines (21 loc) · 813 Bytes
/
Makefile
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
27
include build/Makefile.core.mk
include build/Makefile.show-help.mk
## Run suite of Golang lint checks
check:
golangci-lint run -c .golangci.yml -v ./...
## Run Golang tests
test:
go test --short ./... -race -coverprofile=coverage.txt -covermode=atomic
## Clean up Golang packages. Print diff.
tidy:
go mod tidy
git diff --exit-code go.mod go.sum
## Run Meshery Error Code Utility. Generate error codes.
errorutil:
go run github.com/layer5io/meshkit/cmd/errorutil -d . update --skip-dirs meshery -i ./helpers -o ./helpers
## Run Meshery Error Code Utility. Analyze only.
errorutil-analyze:
go run github.com/layer5io/meshkit/cmd/errorutil -d . analyze --skip-dirs meshery -i ./helpers -o ./helpers
## Build the Meshery Error Code Utility.
build-errorutil:
go build -o errorutil cmd/errorutil/main.go