Skip to content

Commit

Permalink
fix git describe commands to fetch versions (#1763)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-bowman authored Dec 2, 2024
1 parent fb33573 commit 1bd45ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COSMOS_BUILD_OPTIONS ?= ""
PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation')
PACKAGES_SIM=github.com/quicksilver-zone/quicksilver/test/simulation
PACKAGES_E2E=$(shell go list ./... | grep '/e2e')
VERSION=$(shell git describe --tags | head -n1 | sed 's/.*\///')
VERSION=$(shell git describe --tags --exclude "icq-relayer/*" --exclude "fe/*" --match "v*" | head -n1 | sed 's/.*\///')
DOCKER_VERSION ?= $(VERSION)
TMVERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')
COMMIT := $(shell git log -1 --format='%H')
Expand Down
2 changes: 1 addition & 1 deletion icq-relayer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

QSVERSION ?= $(shell grep github.com/quicksilver-zone/quicksilver go.mod | grep -Eo 'v[0-9]\.[0-9]\.[0-9].*')
COMMIT ?= $(shell git log -1 --format='%H')
VERSION ?= $(shell git describe --tags | grep 'icq-relayer' | head -n1 | sed 's/.*\///')
VERSION ?= $(shell git describe --tags --match 'icq-relayer/*' | head -n1 | sed 's/.*\///')

ldflags = -X github.com/quicksilver-zone/quicksilver/icq-relayer/pkg/runner.VERSION=icq-relayer/$(VERSION) \
-X github.com/quicksilver-zone/quicksilver/icq-relayer/pkg/runner.COMMIT=$(COMMIT) \
Expand Down

0 comments on commit 1bd45ff

Please sign in to comment.