You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 445B

12345678910111213141516171819202122
  1. GO ?= go
  2. .PHONY: build
  3. build:
  4. $(GO) build
  5. .PHONY: fmt
  6. fmt:
  7. $(GO) fmt ./...
  8. .PHONY: vet
  9. vet: build
  10. $(GO) vet ./...
  11. $(GO) vet -vettool=gitea-vet ./...
  12. .PHONY: lint
  13. lint:
  14. @hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
  15. export BINARY="golangci-lint"; \
  16. curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(shell $(GO) env GOPATH)/bin v1.24.0; \
  17. fi
  18. golangci-lint run --timeout 5m