diff options
author | xengineering <me@xengineering.eu> | 2023-12-27 12:56:46 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-12-27 13:05:05 +0100 |
commit | 4721d69eb139e7da26f5454b80c39a4f1c8f1e23 (patch) | |
tree | f798b7c5fca602e566f42ed35bf806445b2c7623 /vendor/github.com/gorilla/mux/Makefile | |
parent | 8b60724f7532c22be991cf15e4495e61c8fc7287 (diff) | |
download | ceres-4721d69eb139e7da26f5454b80c39a4f1c8f1e23.tar ceres-4721d69eb139e7da26f5454b80c39a4f1c8f1e23.tar.zst ceres-4721d69eb139e7da26f5454b80c39a4f1c8f1e23.zip |
Add github.com/gorilla/mux
This dependency provides a more extended HTTP routing than the Go
standard library.
Diffstat (limited to 'vendor/github.com/gorilla/mux/Makefile')
-rw-r--r-- | vendor/github.com/gorilla/mux/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/vendor/github.com/gorilla/mux/Makefile b/vendor/github.com/gorilla/mux/Makefile new file mode 100644 index 0000000..98f5ab7 --- /dev/null +++ b/vendor/github.com/gorilla/mux/Makefile @@ -0,0 +1,34 @@ +GO_LINT=$(shell which golangci-lint 2> /dev/null || echo '') +GO_LINT_URI=github.com/golangci/golangci-lint/cmd/golangci-lint@latest + +GO_SEC=$(shell which gosec 2> /dev/null || echo '') +GO_SEC_URI=github.com/securego/gosec/v2/cmd/gosec@latest + +GO_VULNCHECK=$(shell which govulncheck 2> /dev/null || echo '') +GO_VULNCHECK_URI=golang.org/x/vuln/cmd/govulncheck@latest + +.PHONY: golangci-lint +golangci-lint: + $(if $(GO_LINT), ,go install $(GO_LINT_URI)) + @echo "##### Running golangci-lint" + golangci-lint run -v + +.PHONY: gosec +gosec: + $(if $(GO_SEC), ,go install $(GO_SEC_URI)) + @echo "##### Running gosec" + gosec ./... + +.PHONY: govulncheck +govulncheck: + $(if $(GO_VULNCHECK), ,go install $(GO_VULNCHECK_URI)) + @echo "##### Running govulncheck" + govulncheck ./... + +.PHONY: verify +verify: golangci-lint gosec govulncheck + +.PHONY: test +test: + @echo "##### Running tests" + go test -race -cover -coverprofile=coverage.coverprofile -covermode=atomic -v ./...
\ No newline at end of file |