Skip to content

Commit

Permalink
version bump: 1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Aug 29, 2019
1 parent 92a3ef1 commit 3e140f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions genny/release/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Options struct {
VersionFile string
LegacyPackr bool
SkipPackr bool
semVersion *semver.Version
semVersion semver.Version
// add your stuff here
}

Expand All @@ -30,10 +30,8 @@ func (opts *Options) Validate() error {
if len(opts.Version) == 0 {
opts.Version = "v0.0.1"
}
if !strings.HasPrefix(opts.Version, "v") {
opts.Version = "v" + opts.Version
}
v, err := semver.NewVersion(opts.Version)

v, err := semver.NewVersion(strings.TrimPrefix(opts.Version, "v"))
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/gobuffalo/release
go 1.12

require (
github.com/Masterminds/semver v1.4.2
github.com/Masterminds/semver v1.4.3-0.20190829202958-e21c53f7d696
github.com/gobuffalo/envy v1.7.0
github.com/gobuffalo/genny v0.3.0
github.com/gobuffalo/here v0.2.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/Masterminds/semver v1.4.2 h1:WBLTQ37jOCzSLtXNdoo8bNM8876KhNqOKvrlGITgsTc=
github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
github.com/Masterminds/semver v1.4.3-0.20190829202958-e21c53f7d696 h1:OqELdiOlY8GBlSvZ1FA8pVR2EbVZjoPD54HeujJgbkc=
github.com/Masterminds/semver v1.4.3-0.20190829202958-e21c53f7d696/go.mod h1:8CV7kYbvgykQs8Io0EDPxUVkQQsXveUpKzLB6tuHV2w=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main

// Version of main
const Version = "v1.9.0"
const Version = "1.10.0"

0 comments on commit 3e140f9

Please sign in to comment.