version

package
v1.31.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version is the version of the encore binary. It is set using `go build -ldflags "-X encr.dev/internal/version.Version=v1.2.3"`.

Functions

func Compare added in v1.12.0

func Compare(againstVersion string) int

Compare compares this version of Encore against another version accounting for the release channel.

If the releases are from the same channel, then it returns:

  • 0 if the versions are the same
  • a negative number if this version is older than the other
  • a positive number if this version is newer than the other

If the releases are from different channels, it always returns 1.

func ConfigHash

func ConfigHash() (string, error)

ConfigHash reports a hash of the configuration that affects the behavior of the daemon. It is used to decide whether to restart the daemon.

Types

type ReleaseChannel added in v1.9.3

type ReleaseChannel string
const (
	GA       ReleaseChannel = "ga"      // A general availability release of Encore in Semver: v1.10.0
	Nightly  ReleaseChannel = "nightly" // A nightly build of Encore with the date of the build: nightly-20221231
	DevBuild ReleaseChannel = "devel"   // A development build of Encore with the commit of the build: devel-0140ab0f78fd10d52673a961e900993b64b7b9e3

)
var Channel ReleaseChannel

Channel tells us which ReleaseChannel this build of Encore is under

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL