unquote path

This commit is contained in:
mlange-42 2023-02-02 13:32:38 +01:00
parent 7a98aa58fe
commit 2725838e76
1 changed files with 1 additions and 1 deletions

2
gen.go
View File

@ -97,7 +97,7 @@ func loadPackage(path string, buildFirst bool, buildTags string) (*packages.Pack
buildTagStr := fmt.Sprintf("\"%s\"", strings.Join(strings.Split(buildTags, ","), " "))
args = append(args, "-tags", buildTagStr)
}
args = append(args, "-v", "path")
args = append(args, "-v", path)
fmt.Printf("go %v\n", strings.Join(args, " "))
cmd := exec.Command("go", args...)
cmd.Stdin = os.Stdin