Skip to content

Commit c12d564

Browse files
committed
Fix API version shown in build details
1 parent 56428e2 commit c12d564

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ BRANCH_NAME:=$(shell git rev-parse --abbrev-ref HEAD | tr '/' '-')
44
# The Git commit hash
55
COMMIT := $(shell git rev-parse HEAD)
66
# The tag of the current commit, otherwise empty
7-
GIT_VERSION := $(shell git describe --tags --abbrev=2 2>/dev/null)
7+
GIT_VERSION := $(shell git describe --tags --abbrev=0 2>/dev/null)
88
CMD_ARGS :=
99
# ACCESS_NODE_SPORK_HOSTS are comma separated
1010
TESTNET_ACCESS_NODE_SPORK_HOSTS := access-001.devnet51.nodes.onflow.org:9000
@@ -86,7 +86,7 @@ check-tidy:
8686

8787
.PHONY: build
8888
build:
89-
$(COMPILER_FLAGS) go build -o flow-evm-gateway -ldflags="-X github.com/onflow/flow-evm-gateway/api.Version=$(IMAGE_TAG)" cmd/main.go
89+
$(COMPILER_FLAGS) go build -o flow-evm-gateway -ldflags="-X github.com/onflow/flow-evm-gateway/api.Version=$(GIT_VERSION)" cmd/main.go
9090
chmod a+x flow-evm-gateway
9191

9292
.PHONY: fix-lint

0 commit comments

Comments
 (0)