Skip to content

Commit

Permalink
version bump: v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Sep 5, 2018
1 parent b86adb5 commit 3c857ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ update:
release-test:
$(GO_BIN) test -tags ${TAGS} -race ./...

release:
$(GO_BIN) get github.com/gobuffalo/release/...
release -y
me:
release -y -f ./release/version.go
15 changes: 2 additions & 13 deletions genny/release/version_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"strings"

"github.com/gobuffalo/genny"
"github.com/gobuffalo/genny/movinglater/gotools/goimports"
"github.com/pkg/errors"
)

Expand Down Expand Up @@ -38,19 +37,9 @@ func writeVersionFile(opts *Options) genny.RunFn {

bb.WriteString(line + "\n")
}
f = genny.NewFile(f.Name(), bb)

bb = &bytes.Buffer{}
gir := goimports.NewFromFiles(goimports.File{
Name: f.Name(),
In: f,
Out: bb,
})
if err := gir.Run(); err != nil {
return errors.WithStack(err)
}

f = genny.NewFile(f.Name(), strings.NewReader(strings.TrimSpace(bb.String())))
body := strings.TrimSpace(bb.String())
f = genny.NewFile(f.Name(), strings.NewReader(body+"\n"))
return r.File(f)
}
}
2 changes: 1 addition & 1 deletion release/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package release

const Version = "v0.0.0"
const Version = "v1.0.6"

0 comments on commit 3c857ff

Please sign in to comment.