Skip to content

Commit

Permalink
Fix hardcoded version in the build command (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkollar authored Apr 1, 2024
1 parent 0bd099c commit 1058eec
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 @@ -11,7 +11,7 @@ PROJECT_NAME := ssc
HTTPS_GIT := https://github.com/sagaxyz/ssc.git

ifeq (,$(VERSION))
VERSION := $(shell git describe --exact-match 2>/dev/null)
VERSION := $(shell git describe --exact-match --tags 2>/dev/null)
# if VERSION is empty, then populate it with branch's name and raw commit hash
ifeq (,$(VERSION))
VERSION := $(BRANCH)-$(COMMIT)
Expand Down Expand Up @@ -54,7 +54,7 @@ build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))

ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=ssc \
-X github.com/cosmos/cosmos-sdk/version.AppName=sscd \
-X github.com/cosmos/cosmos-sdk/version.Version=v0.1.3 \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \
-X github.com/cometbft/cometbft/version.TMCoreSemVer=$(TM_VERSION)
Expand Down

0 comments on commit 1058eec

Please sign in to comment.