Hi folks, I’m running into an issue whereby pants ...
# general
s
Hi folks, I’m running into an issue whereby pants is unable to locate my go binary despite the following configurations:
Copy code
[golang]
minimum_expected_version = "1.22"
go_search_paths = [
  "/opt/homebrew/bin",
  "/usr/local/bin",
  "/usr/local/sbin",
  "/usr/sbin",
  "/usr/bin",
  "/sbin",
  "/bin"
]
the error (from running
pants package ::
):
Copy code
20:48:51.76 [ERROR] 1 Exception encountered:

Engine traceback:
  in `package` goal

BinaryNotFoundError: Cannot find any `go` binaries using the option `[golang].go_search_paths`: ['/opt/homebrew/bin']

To fix, please install Go (<https://golang.org/doc/install>) with the version 1.22 or newer (set by `[golang].minimum_expected_version`). Then ensure that it is discoverable via `[golang].go_search_paths`.
Unless im misunderstanding something or being silly (likely), i think I’ve set this correctly:
Copy code
✗ which go                 
/opt/homebrew/bin/go
✗ go version
go version go1.22.5 darwin/arm64
Any help is much appreciated, as always. Thank you!