Hi team, I’m facing the same issue as described in...
# general
e
Hi team, I’m facing the same issue as described in this ticket: https://github.com/pantsbuild/pex/issues/1954 I see that this has been added to the backlog for pex version 2.1.142, but I’m curious if you happen to have a workaround for this issue until this new version is released.
tagging @enough-analyst-54434 since you might have context on this above ticket and the fix
e
I flubbed the release ticket wrangling. That was completed and released already here: https://github.com/pantsbuild/pex/releases/tag/v2.1.140
e
I’m using the command recommend in the official pants guide
Copy code
curl -L -o pants <https://pantsbuild.github.io/setup/pants>
to upgrade the pex version of our repository, but this doesn’t seem to upgrade our pex version to the latest version. Can we manually set the _PEX_VERSION variable to the latest version v2.1.140 to complete the upgrade? or should we wait for https://pantsbuild.github.io/setup/pants to be updated with the latest release?
e
You can do so manually. See: https://pantsbuild.slack.com/archives/C046T6T9U/p1690136330337179?thread_ts=1688761502.867459&amp;cid=C046T6T9U You'll need to edit the version as well as the sha256 hash and size.
See here for sha256 + size or calculate them on your own after downloading manually: https://github.com/pantsbuild/pex/actions/runs/5645693057/job/15292018246#step:4:144
e
hmm I’m having trouble finding the sha256 in the link you’ve shared above. Could you directly share it with me in this thread?
ok I found the sha of the commit that prepares the 2.1.140 release. would setting the following in my pants cli command be sufficient?
Copy code
_PEX_VERSION=2.1.140
_PEX_URL="<https://github.com/pantsbuild/pex/releases/download/v${_PEX_VERSION}/pex>"
_PEX_EXPECTED_SHA256="f4d9a7abdd8249564e283f1d6083056b8e8eb9e4"
quickly following up! I’m getting the following error after the above addition has been made
Copy code
SHA256 of <https://github.com/pantsbuild/pex/releases/download/v2.1.140/pex> is not as expected. Aborting.
e
You should probably have tried the "or manually download and calculate them on your own", but:
Copy code
sha256: 6985eefd3b00104bf0e00b604d080924284edd49fac780b9e83ba7a1dd788a97
size: 4201898
🙏 1
e
I wasn’t sure how to manually download and calculate the sha on my own 😓
out of curiosity, how do I manually download and calculate my own sha?
e
I'm not sure what OS you use, but (and this is very easy to Google) you should have or be able to install a
sha256sum
command which can be used like:
sha256sum <path of downloaded file>
.
And, of course, if you do Python, the stdlib
hashlib
module has everything (including docs) you need to get the result from a quick Python repl session.
❤️ 1
e
thank you!