Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot authored Mar 30, 2019
2 parents 814721b + effaf26 commit bdacadf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ autobrew
vendor/
dist/
goweight
.vscode/
3 changes: 2 additions & 1 deletion pkg/goweight.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ type GoWeight struct {

func NewGoWeight() *GoWeight {
return &GoWeight{
BuildCmd: []string{"go", "build", "-work", "-a"},
BuildCmd: []string{"go", "build","-o", "goweight-bin-target", "-work", "-a"},
}
}

func (g *GoWeight) BuildCurrent() string {
return strings.Split(strings.TrimSpace(run(g.BuildCmd)), "=")[1]
}

func (g *GoWeight) Process(work string) []*ModuleEntry {

files, err := zglob.Glob(work + "**/importcfg")
Expand Down

0 comments on commit bdacadf

Please sign in to comment.