wooden-thailand-8386
10/21/2020, 3:31 PMpex
binary that pants tried to download from
<https://github.com/pantsbuild/pex/releases/download/v2.1.19/pex>
already inside my jenkins-agent image and point there using:
[pex]
executable_search_paths = ["<PATH>"]
would that work? I just can’t have pants
downloading anything that isnt from my private pypi.hundreds-father-404
10/21/2020, 4:50 PM<https://github.com/pantsbuild/pex/releases/download/>
. Is it possible perhaps to allowlist that URL?
Otherwise, would you be able to host the binaries somewhere? Or you’d want to be able to use a local file? (I’m trying to think of a wokaround for you; you’re going to hit this same issue with things like downloading Protoc or scc
for counting code)wooden-thailand-8386
10/21/2020, 5:22 PMhundreds-father-404
10/21/2020, 5:28 PMwooden-thailand-8386
10/21/2020, 5:32 PMpants
but can’t use it bc of the same heavy regulated / security stuff.wooden-thailand-8386
10/21/2020, 5:33 PMpants
go there and get it.
OR I can already download it here, locally, and embed it into my jenkins-agent so my CI have pex
and any other tool already available inside the PATH varhundreds-father-404
10/21/2020, 5:35 PMwooden-thailand-8386
10/21/2020, 5:38 PMexecutable_search_paths
work. I thought it could be as easy as just add the pex
binary to my CI’s PATH.wooden-thailand-8386
10/21/2020, 5:38 PMhundreds-father-404
10/21/2020, 5:42 PMI mean, I’m fine with either. Maybe I’m not fully understanding how thatBinaries are always run from absolute paths. This is required by the Remote Execution API and important for determinism + caching. The option is only used for us to discover where those absolute paths are on your machine But okay cool, we’ll go with being able to change the URL for nowwork. I thought it could be as easy as just add theexecutable_search_paths
binary to my CI’s PATH.pex
wooden-thailand-8386
10/21/2020, 5:43 PMpants.toml
something like:
tools_external_url=<https://myhosted.stuff.com/artifacts/pex/>
and then it would solve to.. v…./pex
?wooden-thailand-8386
10/21/2020, 5:44 PMlatest
the re-routes to that latest versionhundreds-father-404
10/21/2020, 5:44 PMhundreds-father-404
10/21/2020, 5:46 PMwooden-thailand-8386
10/21/2020, 5:46 PMpex
version… I’ll have to submit a request and wait their goodwill.. so I’m thinking that maybe allowing to version lock will be very usefulhundreds-father-404
10/21/2020, 5:47 PMwooden-thailand-8386
10/21/2020, 5:49 PMpex
updating overnight and no one being able to use pants the next day bc it’s trying to get a version that’s still not available in my hosted solution.hundreds-father-404
10/21/2020, 5:51 PM