fix(ax): clarify version usage and channel guard
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
3769af2513
commit
f7830371a2
2 changed files with 2 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ func updateChannel() string {
|
|||
switch {
|
||||
case agentpkg.Version == "" || agentpkg.Version == "dev":
|
||||
return "dev"
|
||||
case len(agentpkg.Version) > 0 && (agentpkg.Version[len(agentpkg.Version)-1] >= 'a'):
|
||||
case agentpkg.Version != "" && (agentpkg.Version[len(agentpkg.Version)-1] >= 'a'):
|
||||
return "prerelease"
|
||||
default:
|
||||
return "stable"
|
||||
|
|
|
|||
|
|
@ -5,4 +5,5 @@ package agent
|
|||
// Version is injected at build time via ldflags.
|
||||
//
|
||||
// go build -ldflags "-X 'dappco.re/go/agent.Version=0.15.0'" ./cmd/core-agent/
|
||||
// core.Println(Version) // "0.15.0"
|
||||
var Version string
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue