Skip to content

Commit

Permalink
Merge pull request #731 from onflow/mpeter/fix-build-version
Browse files Browse the repository at this point in the history
Fix API version shown in build details
  • Loading branch information
franklywatson authored Jan 24, 2025
2 parents 56428e2 + c12d564 commit 47aae3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ BRANCH_NAME:=$(shell git rev-parse --abbrev-ref HEAD | tr '/' '-')
# The Git commit hash
COMMIT := $(shell git rev-parse HEAD)
# The tag of the current commit, otherwise empty
GIT_VERSION := $(shell git describe --tags --abbrev=2 2>/dev/null)
GIT_VERSION := $(shell git describe --tags --abbrev=0 2>/dev/null)
CMD_ARGS :=
# ACCESS_NODE_SPORK_HOSTS are comma separated
TESTNET_ACCESS_NODE_SPORK_HOSTS := access-001.devnet51.nodes.onflow.org:9000
Expand Down Expand Up @@ -86,7 +86,7 @@ check-tidy:

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

.PHONY: fix-lint
Expand Down

0 comments on commit 47aae3e

Please sign in to comment.