Skip to content

Commit

Permalink
Remove unused VersionPrerelease and adopt bumpversion
Browse files Browse the repository at this point in the history
  • Loading branch information
joelnb committed Jan 20, 2019
1 parent bac74cc commit 4d7ff0f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[bumpversion]
current_version = 0.1.0
commit = True
tag = True

[bumpversion:file:cmd/xenstore/version.go]
search = const Version = "{current_version}"
replace = const Version = "{new_version}"
2 changes: 2 additions & 0 deletions cmd/xenstore/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ func InfoCommand(ctx *cli.Context) error {
fmt.Println("Socket Path:", xenstore.UnixSocketPath())
fmt.Println("XenBus Path:", xenstore.XenBusPath())
fmt.Println("ControlDomain:", xenstore.ControlDomain())
fmt.Println()
fmt.Println("Version:", Version)
fmt.Println("GitCommit:", GitCommit)
return nil
}
5 changes: 0 additions & 5 deletions cmd/xenstore/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,3 @@ var GitCommit string

// The main version number that is being run at the moment.
const Version = "0.1.0"

// A pre-release marker for the version. If this is "" (empty string)
// then it means that it is a final release. Otherwise, this is a pre-release
// such as "dev" (in development), "beta", "rc1", etc.
const VersionPrerelease = "dev"

0 comments on commit 4d7ff0f

Please sign in to comment.