nice-park-16693
03/07/2023, 9:43 AMbusy-vase-39202
03/07/2023, 9:55 AMbusy-vase-39202
03/07/2023, 9:57 AMbusy-vase-39202
03/07/2023, 9:59 AMnice-park-16693
03/07/2023, 10:00 AMcurved-television-6568
03/07/2023, 12:34 PMnice-park-16693
03/07/2023, 1:34 PMbitter-ability-32190
03/07/2023, 2:10 PMbitter-ability-32190
03/07/2023, 3:25 PMpip install
(I blame Python, not people). That being said, it's really frustrating to use non-hermetic Python. That's why I'm divorcing Pants from system Python 🙂
The linked PR makes it so you can opt-into having Pants use pyenv
to build and install Python in a read-only cache directory. So it should become way more hermetic. It'll still rely on system libraries, but nothing is truly hermetic and this is a great improvement.fast-nail-55400
03/07/2023, 6:12 PMfast-nail-55400
03/07/2023, 6:14 PMancient-vegetable-10556
03/07/2023, 6:44 PMfast-nail-55400
03/07/2023, 6:54 PMProcess
and the newer work superseding immutable inputs to symlink inputs insteadfast-nail-55400
03/07/2023, 6:54 PMancient-vegetable-10556
03/07/2023, 6:59 PMbitter-ability-32190
03/07/2023, 6:59 PMfast-nail-55400
03/07/2023, 7:13 PMWith that in mind: there’s a fairly clear path forward on how to manage the go SDK in a way that is Pants-efficient, which we can probably help someone towards implementing. It’s just not a priority for us to do the heavy lifting ourselvesI have done some initial thinking here. I wanted the Go backend to just have an equivalent to what
pyenv
, coursier
, and asdf
do and download and install the Go SDK into a Pants-managed directory.fast-nail-55400
03/07/2023, 7:13 PMancient-vegetable-10556
03/07/2023, 10:19 PMcoursier
does inside pants, when it’s used elsewhere?fast-nail-55400
03/07/2023, 10:22 PMcoursier
does in downloading JDKs but managed from within the Pants rules and not via an external utility as coursier
isancient-vegetable-10556
03/07/2023, 10:23 PMnice-park-16693
03/08/2023, 10:07 AMWhat did you want to know specifically about the Go support?What interests me here really is what the future might hold for Go toolchain management by Pants. It seems like this might be the answer, which seems like it gives parity with what Please currently does:
I wanted the Go backend to just have an equivalent to whatCorrect me if I'm misinterpreting what you've said, but otherwise this seems promising and thanks for the responses!,pyenv
, andcoursier
do and download and install the Go SDK into a Pants-managed directory.asdf