Skip to content

Commit

Permalink
embrace go1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
CAFxX committed May 10, 2023
1 parent d7e883f commit ba85b43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Expand Up @@ -67,8 +67,8 @@ func main() {
if os.Args[i] == "-o" && len(os.Args) > i+1 {
o = os.Args[i+1]
i++
} else if strings.HasPrefix(os.Args[i], "-o=") {
o = strings.TrimPrefix(os.Args[i], "-o=")
} else if a, ok := strings.CutPrefix(os.Args[i], "-o="); ok {
o = a
} else {
args = append(args, os.Args[i])
}
Expand Down Expand Up @@ -132,7 +132,7 @@ func main() {
}

cmd = exec.Command("go")
cmd.Args = []string{"go", "build", "-C", tmpdir, "-mod", "vendor", "-o", filepath.Join(cwd, o), "-trimpath", "./launcher"}
cmd.Args = []string{"go", "build", "-C", tmpdir, "-o", filepath.Join(cwd, o), "-trimpath", "./launcher"}
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand Down

0 comments on commit ba85b43

Please sign in to comment.