Hello. We are having a problem upgrading pants fr...
# general
w
Hello. We are having a problem upgrading pants from 2.19 to 2.21.1. It says:
Copy code
Wasn't able to fetch the Pants PEX at <https://github.com/pantsbuild/pants/releases/download/release_2.21.1/pants.cp39-linux_x86_64.pex>.
Looking at the release folder in github it appears to not be constructing the URL correctly. It filename should be "pants.2.21.1-cp39-darwin_x86_64.pex" That said, we are having trouble sorting the issue as pants is refusing all commands. Tried doing a manual installation curl command from the "getting started" docs, but problem persists. Any suggestions on other things to try?
w
I take it you're on an Intel mac? I've never run into these errors before, but it might be useful to see any logs/terminal errors/etc. Have you tried installing via brew?
w
Ubuntu linux
Thanks for the response, SJ!
w
If you're running on linux, then why would you think this works? "It filename should be "pants.2.21.1-cp39-darwin_x86_64.pex""
And using this
curl --proto '=https' --tlsv1.2 -fsSL <https://static.pantsbuild.org/setup/get-pants.sh> | bash
What is the error you get?
w
We're trying it now... please stand by
That command worked, however, we had to manually remove the pants executable first.
Now something VERY weird is happening. This version is not walking up the tree to find the pants.toml at the root of the project. Instead it is error out saying it cannot find the pants.toml file.
Neverrmind, looks like a glitch in the matrix. tried in another terminal and all is okay now. Thanks for your help, SJ!
w
👍