Skip to content

Commit

Permalink
internal/cueversion: bump fallbackVersion for v0.8.0-rc.1
Browse files Browse the repository at this point in the history
While here, tweak the godocs with https://sembr.org/ for readability.

Signed-off-by: Daniel Martí <[email protected]>
Change-Id: I38501589c2db7e0f6c07d61af17a720c62535bbb
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1178185
Reviewed-by: Roger Peppe <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
  • Loading branch information
mvdan committed Mar 13, 2024
1 parent d97e914 commit ccb64b1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions internal/cueversion/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@ import (
"sync"
)

// fallbackVersion is used when there isn't a recorded main module
// version, for example when building via `go install ./cmd/cue`. It
// should reflect the last release in the current branch.
// fallbackVersion is used when there isn't a recorded main module version,
// for example when building via `go install ./cmd/cue`.
// It should reflect the last release in the current branch.
//
// TODO: remove once Go stamps local builds with a main module version
// derived from the local VCS information per
// https://go.dev/issue/50603.
const fallbackVersion = "v0.8.0-alpha.5"
// derived from the local VCS information per https://go.dev/issue/50603.
const fallbackVersion = "v0.8.0-rc.1"

// Version returns the version of the cuelang.org/go module as best
// as can reasonably be determined. The result is always a valid Go
// semver version.
// Version returns the version of the cuelang.org/go module as best as can
// reasonably be determined. The result is always a valid Go semver version.
func Version() string {
return versionOnce()
}
Expand Down

0 comments on commit ccb64b1

Please sign in to comment.