Skip to content

Commit

Permalink
specs-go: Respect semver 2.0.0
Browse files Browse the repository at this point in the history
According to semver.org, the 2.0.0 spec, the pre-release info should be
delimited by a "-" ("+" is for build info) and we already released
1.1.0, so increment the minor so this version compares to something
bigger than 1.1.0.

Signed-off-by: Rodrigo Campos <[email protected]>
  • Loading branch information
rata committed Aug 21, 2023
1 parent e8c4134 commit 2ffd947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs-go/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const (
// VersionMinor is for functionality in a backwards-compatible manner
VersionMinor = 1
// VersionPatch is for backwards-compatible bug fixes
VersionPatch = 0
VersionPatch = 1

// VersionDev indicates development branch. Releases will be empty string.
VersionDev = "+dev"
VersionDev = "-dev"
)

// Version is the specification version that the package types support.
Expand Down

0 comments on commit 2ffd947

Please sign in to comment.