2022-05-04 15:51:24 -06:00
|
|
|
LDFLAGSSTRING +=-X main.GitCommit=$(GITCOMMIT)
|
|
|
|
LDFLAGSSTRING +=-X main.GitDate=$(GITDATE)
|
|
|
|
LDFLAGSSTRING +=-X main.GitVersion=$(GITVERSION)
|
|
|
|
LDFLAGS := -ldflags "$(LDFLAGSSTRING)"
|
|
|
|
|
|
|
|
proxyd:
|
|
|
|
go build -v $(LDFLAGS) -o ./bin/proxyd ./cmd/proxyd
|
|
|
|
.PHONY: proxyd
|
|
|
|
|
|
|
|
fmt:
|
|
|
|
go mod tidy
|
|
|
|
gofmt -w .
|
|
|
|
.PHONY: fmt
|
|
|
|
|
|
|
|
test:
|
2023-10-05 14:42:40 -07:00
|
|
|
go test -v ./...
|
2022-05-04 15:51:24 -06:00
|
|
|
.PHONY: test
|
|
|
|
|
|
|
|
lint:
|
|
|
|
go vet ./...
|
2023-10-05 14:42:40 -07:00
|
|
|
.PHONY: test
|
2024-06-04 18:19:54 -05:00
|
|
|
|
|
|
|
test-fallback:
|
|
|
|
go test -v ./... -test.run ^TestFallback$
|
|
|
|
.PHONY: test-fallback
|