Skip to content

Commit

Permalink
chore(lib/buildinfo): simplify version
Browse files Browse the repository at this point in the history
  • Loading branch information
corverroos committed Sep 5, 2024
1 parent dc86268 commit bff7687
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ builds:
goos: [linux, darwin]
goarch: [amd64, arm64]
ldflags:
- -s -w -X github.com/omni-network/omni/lib/buildinfo.version={{.Tag}}
- -s -w -X github.com/omni-network/omni/lib/buildinfo.version={{ if .IsSnapshot }}main{{ else }}{{.Tag}}{{ end }}

- id: relayer
main: ./relayer
Expand All @@ -19,7 +19,7 @@ builds:
goos: [linux, darwin]
goarch: [amd64, arm64]
ldflags:
- -s -w -X github.com/omni-network/omni/lib/buildinfo.version={{.Tag}}
- -s -w -X github.com/omni-network/omni/lib/buildinfo.version={{ if .IsSnapshot }}main{{ else }}{{.Tag}}{{ end }}

- id: monitor
main: ./monitor
Expand All @@ -35,7 +35,7 @@ builds:
goos: [ linux, darwin ]
goarch: [ amd64, arm64 ]
ldflags:
- -s -w -X github.com/omni-network/omni/lib/buildinfo.version={{.Tag}}
- -s -w -X github.com/omni-network/omni/lib/buildinfo.version={{ if .IsSnapshot }}main{{ else }}{{.Tag}}{{ end }}

- id: anvilproxy
main: ./e2e/anvilproxy
Expand Down
2 changes: 1 addition & 1 deletion halo/config/testdata/default_halo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# The version of the Halo binary that created or
# last modified the config file. Do not modify this.
version = "v0.4-dev"
version = "main"

# Omni network to participate in: mainnet, testnet, or devnet.
network = ""
Expand Down
2 changes: 1 addition & 1 deletion halo/genutil/testdata/TestMakeGenesis.golden
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"app_name": "halo",
"app_version": "v0.4-dev",
"app_version": "main",
"genesis_time": "1970-01-01T00:00:01Z",
"chain_id": "omni-1001651",
"initial_height": 1,
Expand Down
2 changes: 1 addition & 1 deletion lib/buildinfo/buildinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// version of the whole omni-monorepo and all binaries built from this git commit.
// This value is set by goreleaser at build-time and should be the git tag for official releases.
var version = "v0.4-dev"
var version = "main"

// unknown is the default value for the git commit hash and timestamp.
const unknown = "unknown"
Expand Down

0 comments on commit bff7687

Please sign in to comment.