diff --git a/buffalo/cmd/build/apkg.go b/buffalo/cmd/build/apkg.go index d5b38c83d..76c8d4e24 100644 --- a/buffalo/cmd/build/apkg.go +++ b/buffalo/cmd/build/apkg.go @@ -31,6 +31,7 @@ func (b *Builder) buildAInit() error { if err != nil { return errors.WithStack(err) } + defer f.Close() t, err := templates.MustBytes("a.go.tmpl") if err != nil { return errors.WithStack(err) @@ -60,6 +61,7 @@ func (b *Builder) buildADatabase() error { if err != nil { return errors.WithStack(err) } + defer d.Close() _, err = io.Copy(bb, d) if err != nil { return errors.WithStack(err) diff --git a/buffalo/cmd/build/exec.go b/buffalo/cmd/build/exec.go index 75c1dcd71..446532c98 100644 --- a/buffalo/cmd/build/exec.go +++ b/buffalo/cmd/build/exec.go @@ -6,7 +6,6 @@ import ( "os/exec" "strings" - "github.com/gobuffalo/envy" "github.com/pkg/errors" "github.com/sirupsen/logrus" ) @@ -23,7 +22,7 @@ func (debugWriter) Write(data []byte) (int, error) { func (b *Builder) exec(name string, args ...string) error { cmd := exec.CommandContext(b.ctx, name, args...) logrus.Debugf("running %s", strings.Join(cmd.Args, " ")) - cmd.Env = envy.Environ() + //cmd.Env = envy.Environ() cmd.Stdin = os.Stdin cmd.Stderr = os.Stderr cmd.Stdout = debugWriter(0) diff --git a/buffalo/cmd/version.go b/buffalo/cmd/version.go index 6518491ce..1ceda620d 100644 --- a/buffalo/cmd/version.go +++ b/buffalo/cmd/version.go @@ -7,7 +7,7 @@ import ( ) // Version is the current version of the buffalo binary -const Version = "v0.10.0" +const Version = "v0.10.1" func init() { decorate("version", versionCmd)