mirror of
https://github.com/harness/drone.git
synced 2025-05-01 13:11:27 +00:00
35 lines
1.1 KiB
Go
35 lines
1.1 KiB
Go
// Copyright 2021 Harness Inc. All rights reserved.
|
|
// Use of this source code is governed by the Polyform Free Trial License
|
|
// that can be found in the LICENSE.md file for this repository.
|
|
|
|
// Package version provides the version number.
|
|
package version
|
|
|
|
import "github.com/coreos/go-semver/semver"
|
|
|
|
var (
|
|
// GitRepository is the git repository that was compiled
|
|
GitRepository string
|
|
// GitCommit is the git commit that was compiled
|
|
GitCommit string
|
|
// VersionMajor is for an API incompatible changes.
|
|
VersionMajor int64 = 1
|
|
// VersionMinor is for functionality in a backwards-compatible manner.
|
|
VersionMinor int64
|
|
// VersionPatch is for backwards-compatible bug fixes.
|
|
VersionPatch int64
|
|
// VersionPre indicates prerelease.
|
|
VersionPre = ""
|
|
// VersionDev indicates development branch. Releases will be empty string.
|
|
VersionDev string
|
|
)
|
|
|
|
// Version is the specification version that the package types support.
|
|
var Version = semver.Version{
|
|
Major: VersionMajor,
|
|
Minor: VersionMinor,
|
|
Patch: VersionPatch,
|
|
PreRelease: semver.PreRelease(VersionPre),
|
|
Metadata: VersionDev,
|
|
}
|