Skip to content

Commit

Permalink
Add version to code (ava-labs#136)
Browse files Browse the repository at this point in the history
* 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 <aaron.buchwald56@gmail.com>
  • Loading branch information
ceyonur and aaronbuchwald authored Jul 1, 2022
1 parent 8343694 commit 0224d7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/versions.sh
Original file line number Diff line number Diff line change
@@ -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'}

0 comments on commit 0224d7a

Please sign in to comment.