Skip to content

Commit

Permalink
fixed gometalinter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Oct 17, 2018
1 parent 1f9ce07 commit 74d7f06
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion genny/makefile/makefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ func New(opts *Options) (*genny.Generator, error) {
g.Transformer(plushgen.Transformer(ctx))
g.Transformer(genny.Dot())
g.RunFn(gotools.Install("github.com/alecthomas/gometalinter"))
g.Command(exec.Command("gometalinter", "--install"))

g.RunFn(func(r *genny.Runner) error {
c := exec.Command("gometalinter", "--install")
return r.Exec(c)
})

return g, nil
}
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
require (
github.com/Masterminds/semver v1.4.2
github.com/gobuffalo/envy v1.6.5
github.com/gobuffalo/genny v0.0.0-20181017142616-0ee1b753300e
github.com/gobuffalo/genny v0.0.0-20181017160347-90a774534246
github.com/gobuffalo/packr v1.13.7
github.com/gobuffalo/plush v3.7.20+incompatible
github.com/gobuffalo/shoulders v1.0.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ github.com/gobuffalo/envy v1.6.4/go.mod h1:Abh+Jfw475/NWtYMEt+hnJWRiC8INKWibIMyN
github.com/gobuffalo/envy v1.6.5 h1:X3is06x7v0nW2xiy2yFbbIjwHz57CD6z6MkvqULTCm8=
github.com/gobuffalo/envy v1.6.5/go.mod h1:N+GkhhZ/93bGZc6ZKhJLP6+m+tCNPKwgSpH9kaifseQ=
github.com/gobuffalo/flect v0.0.0-20181002182613-4571df4b1daf/go.mod h1:rCiQgmAE4axgBNl3jZWzS5rETRYTGOsrixTRaCPzNdA=
github.com/gobuffalo/genny v0.0.0-20181017142616-0ee1b753300e h1:WjBJKSGXndtuzGTzcob3ipiEZPkk+EeJI1r5ko0Ykn4=
github.com/gobuffalo/genny v0.0.0-20181017142616-0ee1b753300e/go.mod h1:+oG5Ljrw04czAHbPXREwaFojJbpUvcIy4DiOnbEJFTA=
github.com/gobuffalo/genny v0.0.0-20181017160347-90a774534246 h1:ap17NHnOCqCKBCeW7deVKkGFZcm7/Lro6uqdlvTXN2k=
github.com/gobuffalo/genny v0.0.0-20181017160347-90a774534246/go.mod h1:+oG5Ljrw04czAHbPXREwaFojJbpUvcIy4DiOnbEJFTA=
github.com/gobuffalo/github_flavored_markdown v1.0.5 h1:YvGVf7yj1akgsb+qc64Q0WX8uhpuZSibChbqOMRSAqE=
github.com/gobuffalo/github_flavored_markdown v1.0.5/go.mod h1:U0643QShPF+OF2tJvYNiYDLDGDuQmJZXsf/bHOJPsMY=
github.com/gobuffalo/packr v1.13.7 h1:2uZgLd6b/W4yRBZV/ScaORxZLNGMHO0VCvqQNkKukNA=
Expand Down

0 comments on commit 74d7f06

Please sign in to comment.