From effaf26f78236c5917a678e5ce6d0fb950b2042b Mon Sep 17 00:00:00 2001 From: Dotan Nahum Date: Sun, 24 Mar 2019 10:28:12 +0200 Subject: [PATCH] remove left over binary --- .gitignore | 1 + pkg/goweight.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 68b1b38..eaf8409 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ autobrew vendor/ dist/ goweight +.vscode/ diff --git a/pkg/goweight.go b/pkg/goweight.go index 8cb62ff..683021a 100644 --- a/pkg/goweight.go +++ b/pkg/goweight.go @@ -56,7 +56,7 @@ func NewGoWeight() *GoWeight { } func (g *GoWeight) BuildCurrent() string { - return strings.Split(strings.TrimSpace(run("go build "+g.BuildArgs+" -work -a 2>&1")), "=")[1] + return strings.Split(strings.TrimSpace(run("go build -o goweight-bin-target "+g.BuildArgs+" -work -a 2>&1 && rm goweight-bin-target")), "=")[1] } func (g *GoWeight) Process(work string) []*ModuleEntry {