Skip to content

Commit 2520481

Browse files
committed
Fix
Signed-off-by: Kevin Zhang <[email protected]>
1 parent 67b016d commit 2520481

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gen.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,12 @@ func loadPackage(path string, buildFirst bool, buildTags string) (*packages.Pack
9292
}
9393

9494
if buildFirst {
95-
args := []string{"build", "-v", "path"}
95+
args := []string{"build"}
9696
if buildTags != "" {
9797
buildTagStr := fmt.Sprintf("\"%s\"", strings.Join(strings.Split(buildTags, ","), " "))
9898
args = append(args, "-tags", buildTagStr)
9999
}
100+
args = append(args, "-v", "path")
100101
fmt.Printf("go %v\n", strings.Join(args, " "))
101102
cmd := exec.Command("go", args...)
102103
cmd.Stdin = os.Stdin

0 commit comments

Comments
 (0)