https://pantsbuild.org/ logo
#general
Title
# general
p

polite-vase-75369

08/25/2020, 1:37 PM
Are there any examples / example repos on how to use pants for golang code?
h

happy-kitchen-89482

08/25/2020, 9:28 PM
We had golang support under the Pants v1 engine, but have not yet developed this for Pants v2. So 1.30.x is the last release series that has support for golang (until we provide it in v2). That is documented here: https://v1.pantsbuild.org/go_readme.html. Are you using an existing version of Pants?
p

polite-vase-75369

08/25/2020, 9:47 PM
Yes, a scala and python repo
i’ve sort of got it working, but some dependencies aren’t being found correctly in intellij, they work fine when compiling or running on command line
h

happy-kitchen-89482

08/26/2020, 9:25 PM
cc @wide-energy-11069 for intellij issues
w

wide-energy-11069

08/26/2020, 9:28 PM
afaict pants intellij plugin (working with v1 pants) does not support go
p

polite-vase-75369

08/26/2020, 9:30 PM
ah that makes sense. from some examples ive seen people use go-env to wrap running intellij so goroot or gopath or whatever is set correctly
2 Views