Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
remove the now unneeded calls to dep ensure and go get at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Feb 3, 2019
1 parent f7972ad commit 8b98233
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 89 deletions.
7 changes: 0 additions & 7 deletions genny/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ func New(opts *Options) (*genny.Generator, error) {
g.Merge(ag)
}

// mount the build time dependency generator
dg, err := buildDeps(opts)
if err != nil {
return g, errors.WithStack(err)
}
g.Merge(dg)

// create the final go build command
c, err := buildCmd(opts)
if err != nil {
Expand Down
29 changes: 0 additions & 29 deletions genny/build/build_deps.go

This file was deleted.

45 changes: 0 additions & 45 deletions genny/build/build_deps_test.go

This file was deleted.

4 changes: 2 additions & 2 deletions genny/build/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
// TODO: once `buffalo new` is converted to use genny
// create an integration test that first generates a new application
// and then tries to build using genny/build.
var coke = packr.NewBox("../build/_fixtures/coke")
var coke = packr.New("github.com/gobuffalo/buffalo/genny/build/build_test", "../build/_fixtures/coke")

var cokeRunner = func() *genny.Runner {
run := gentest.NewRunner()
Expand Down Expand Up @@ -57,7 +57,7 @@ func Test_New(t *testing.T) {
r.Equal(s, strings.Join(c.Args, " "))
}

cmds := []string{"go get ./...", "go build -i -tags bar -o bin/foo"}
cmds := []string{"go build -i -tags bar -o bin/foo"}
r.Len(res.Commands, len(cmds))
for i, c := range res.Commands {
eq(cmds[i], c)
Expand Down
8 changes: 2 additions & 6 deletions packrd/packed-packr.go

Large diffs are not rendered by default.

0 comments on commit 8b98233

Please sign in to comment.