juju: github.com/juju/juju/version Index | Files

package version

import "github.com/juju/juju/version"

Package version contains versioning information for juju. It also acts as guardian of the current client Juju version number.


Package Files



const (
    TreeStateDirty = "dirty"
    TreeStateClean = "clean"


var Compiler = runtime.Compiler

Compiler is the go compiler used to build the binary.

var Current = semversion.MustParse(version)

Current gives the current version of the system. If the file "FORCE-VERSION" is present in the same directory as the running binary, it will override this.

var GitCommit string

GitCommit represents the git commit sha used to build the binary. Generated by the Makefile.

var GitTreeState string = TreeStateDirty

GitTreeState is "clean" when built from a working copy that matches the GitCommit treeish. Generated by the Makefile.

func IsDev Uses

func IsDev(v semversion.Number) bool

IsDev returns whether the version represents a development version. A version with a tag or a nonzero build component is considered to be a development version. Versions older than or equal to 1.19.3 (the switch over time) check for odd minor versions.

Package version imports 7 packages (graph) and is imported by 1641 packages. Updated 2019-07-27. Refresh now. Tools for package owners.