aloof-appointment-30987
02/14/2023, 11:03 PM./pants --print-stacktrace -ldebug list ::
Using version 2.16.0.dev3
Traceback (most recent call last):
File "/home/vagrant/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev3_py38/lib/python3.8/site-packages/pants/backend/go/util_rules/build_pkg.py", line 774, in required_built_go_package
raise Exception(
Exception: Failed to compile main:
./main.go:18:2: could not import encoding/json (open : no such file or directory)
./main.go:19:2: could not import fmt (open : no such file or directory)
...
./main.go:27:2: too many errors
it looks to me like pants is not picking up the default $GOPATH (I'm not a GoLang expert however...)
I show default GOPATH
vagrant@linux:~$ go env GOPATH
/home/vagrant/go
Same command using pants version 2.16.0.dev5
File "/home/vagrant/.cache/pants/setup/bootstrap-Linux-x86_64/2.16.0.dev5_py38/lib/python3.8/site-packages/pants/util/frozendict.py", line 51, in __getitem__
return self._data[k]
KeyError: 'unicode/utf8'
Full debug log with stacktrace for both pants versions attachedfast-nail-55400
02/15/2023, 7:31 AM