From 971875b50a48bcdfe9c4284a334772768942a934 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Tue, 26 Mar 2024 04:12:19 +0000 Subject: [PATCH] build: set Finschia/ostracon version (#1298) * Set ostracon version * Update CHANGELOG.md * Use go list --- CHANGELOG.md | 1 + Makefile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43f51f19cd..eb197ca3e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Event Breaking Changes ### Build, CI +* (build) [#1298](https://github.com/Finschia/finschia-sdk/pull/1298) Set Finschia/ostracon version ### Document Updates * (x/token,collection) [#1201](https://github.com/Finschia/finschia-sdk/pull/1201) Deprecate legacy features on x/token,collection diff --git a/Makefile b/Makefile index 0b4f338304..e8a87b95c2 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation') PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation') VERSION := $(shell echo $(shell git describe --always) | sed 's/^v//') COMMIT := $(shell git log -1 --format='%H') +OCVERSION := $(shell go list -m github.com/Finschia/ostracon | sed -e 's:.* v::') LEDGER_ENABLED ?= true BINDIR ?= $(GOPATH)/bin BUILDDIR ?= $(CURDIR)/build @@ -89,7 +90,8 @@ ldflags = -X github.com/Finschia/finschia-sdk/version.Name=sim \ -X github.com/Finschia/finschia-sdk/version.Version=$(VERSION) \ -X github.com/Finschia/finschia-sdk/version.Commit=$(COMMIT) \ -X github.com/Finschia/finschia-sdk/types.DBBackend=$(DB_BACKEND) \ - -X "github.com/Finschia/finschia-sdk/version.BuildTags=$(build_tags_comma_sep)" + -X "github.com/Finschia/finschia-sdk/version.BuildTags=$(build_tags_comma_sep)" \ + -X github.com/Finschia/ostracon/version.OCCoreSemVer=$(OCVERSION) ifeq (,$(findstring nostrip,$(LBM_BUILD_OPTIONS))) ldflags += -w -s