2023-07-18 20:21:19 +03:00
|
|
|
LDFLAGSSTRING +=-X main.GitCommit=$(GITCOMMIT)
|
|
|
|
LDFLAGSSTRING +=-X main.GitDate=$(GITDATE)
|
|
|
|
LDFLAGSSTRING +=-X main.GitVersion=$(GITVERSION)
|
|
|
|
LDFLAGS := -ldflags "$(LDFLAGSSTRING)"
|
|
|
|
|
|
|
|
ufm:
|
|
|
|
go build -v $(LDFLAGS) -o ./bin/ufm ./cmd/ufm
|
|
|
|
.PHONY: ufm
|
|
|
|
|
|
|
|
fmt:
|
|
|
|
go mod tidy
|
|
|
|
gofmt -w .
|
|
|
|
.PHONY: fmt
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test -race -v ./...
|
|
|
|
.PHONY: test
|
|
|
|
|
|
|
|
lint:
|
|
|
|
go vet ./...
|
2024-01-06 03:00:03 +03:00
|
|
|
.PHONY: lint
|
2023-07-19 02:22:53 +03:00
|
|
|
|
|
|
|
tls:
|
|
|
|
kubectl get secrets op-ufm-client-tls -o yaml | yq '.data."tls.key"' | base64 --decode > tls/tls.key
|
|
|
|
kubectl get secrets op-ufm-client-tls -o yaml | yq '.data."tls.crt"' | base64 --decode > tls/tls.crt
|
|
|
|
kubectl get secrets op-ufm-client-tls -o yaml | yq '.data."ca.crt"' | base64 --decode > tls/ca.crt
|
|
|
|
.PHONY: tls
|
2024-03-05 14:30:55 +03:00
|
|
|
|
|
|
|
mod-tidy:
|
|
|
|
# Below GOPRIVATE line allows mod-tidy to be run immediately after
|
|
|
|
# releasing new versions. This bypasses the Go modules proxy, which
|
|
|
|
# can take a while to index new versions.
|
|
|
|
#
|
|
|
|
# See https://proxy.golang.org/ for more info.
|
|
|
|
export GOPRIVATE="github.com/ethereum-optimism" && go mod tidy
|
|
|
|
.PHONY: mod-tidy
|