rapid-bird-79300
05/18/2022, 9:15 PM2.11.0
.
I recently upgraded my go version 1.17->1.18
and when running Pants I'm seeing this error:
BinaryNotFoundError: Cannot find a `go` binary with the expected version of 1.18 (set by `[golang].expected_version`).
Found these `go` binaries, but they had different versions:
* /usr/local/bin/go: 1.17
To fix, please install the expected version (<https://golang.org/doc/install>) and ensure that it is discoverable via the option `[golang].go_search_paths`, or change `[golang].expected_version`.
When inspecting the go version it seems to be correct
$/usr/local/bin/go version
go version go1.18.2 darwin/amd64
Not sure if it's pants related at all but any help is appreciatedhundreds-father-404
05/18/2022, 9:17 PMhundreds-father-404
05/18/2022, 9:17 PMhundreds-father-404
05/18/2022, 9:18 PM.pants.rc
file to override this locally:
https://www.pantsbuild.org/docs/options#pantsrc-filerapid-bird-79300
05/18/2022, 9:22 PMgolang.expected_version
to as it seems to be correct (1.18 which is installed)
curious about this log line for the binary * /usr/local/bin/go: 1.17
Pants is reporting 1.17
when the binary is 1.18
. Maybe I'm missing something else?hundreds-father-404
05/18/2022, 9:23 PMrm -rf .pids
hundreds-father-404
05/18/2022, 9:24 PMrapid-bird-79300
05/18/2022, 9:25 PM