From 0224d7a4878414928464542ed80b7eca7d2b20b9 Mon Sep 17 00:00:00 2001 From: Ceyhun Onur Date: Fri, 1 Jul 2022 19:27:24 +0300 Subject: [PATCH] Add version to code (#136) * Add version to code * bump version * Add version to goreleaser * Remove version from code in favor of setting at compile time * use version env * use v prefix in the version Co-authored-by: Aaron Buchwald --- .goreleaser.yml | 1 + scripts/versions.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 27f0034e29..7773ea54ce 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,6 +5,7 @@ builds: binary: subnet-evm flags: - -v + ldflags: -X github.com/ava-labs/subnet-evm/plugin/evm.Version=v{{.Version}} ignore: - goos: darwin goarch: 386 diff --git a/scripts/versions.sh b/scripts/versions.sh index 15e11b05b9..332c0f07a5 100644 --- a/scripts/versions.sh +++ b/scripts/versions.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Set up the versions to be used -subnet_evm_version=${SUBNET_EVM_VERSION:-'v0.2.4'} +subnet_evm_version=${SUBNET_EVM_VERSION:-'v0.2.5'} # Don't export them as they're used in the context of other calls avalanche_version=${AVALANCHE_VERSION:-'v1.7.13'}