tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
15.21k stars 895 forks source link

add support for `-C` flag to chdir before running #4421

Open archie2x opened 1 month ago

archie2x commented 1 month ago

Supported by big Go since 1.20 for all commands. It's helpful for scripting. Expected behavior:

See go help build:

% go help build
usage: go build [-o output] [build flags] [packages]

[...]

  -C dir
    Change to dir before running the command.
    Any files named on the command line are interpreted after
    changing directories.
    If used, this flag must be the first one in the command line.

[...]
archie2x commented 6 days ago

Fixed by 5abf1e9. Can I close?

dgryski commented 6 days ago

We generally close after the release that includes this fix is out. I'll tag this issue as "next-release" so it gets handled correctly.