version.go 503 Bytes
Newer Older
1
package ipfs
2 3 4 5 6

// CurrentCommit is the current git commit, this is set as a ldflag in the Makefile
var CurrentCommit string

// CurrentVersionNumber is the current application's version literal
Steven Allen's avatar
Steven Allen committed
7
const CurrentVersionNumber = "0.6.0-rc4"
8 9

const ApiVersion = "/go-ipfs/" + CurrentVersionNumber + "/"
Steven Allen's avatar
Steven Allen committed
10 11

// UserAgent is the libp2p user agent used by go-ipfs.
12 13 14
//
// Note: This will end in `/` when no commit is available. This is expected.
var UserAgent = "go-ipfs/" + CurrentVersionNumber + "/" + CurrentCommit