Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit f42fd60

Browse files
Update pants shell script to latest version
Signed-off-by: Christopher Maier <[email protected]>
1 parent 54ec5b0 commit f42fd60

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

pants

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ fi
4040

4141
PANTS_BOOTSTRAP="${PANTS_SETUP_CACHE}/bootstrap-$(uname -s)-$(uname -m)"
4242

43-
_PEX_VERSION=2.1.62
43+
_PEX_VERSION=2.1.103
4444
_PEX_URL="https://github.com/pantsbuild/pex/releases/download/v${_PEX_VERSION}/pex"
45-
_PEX_EXPECTED_SHA256="56668b1ca147bd63141e586ffee97c7cc51ce8e6eac6c9b7a4bf1215b94396e5"
45+
_PEX_EXPECTED_SHA256="4d45336511484100ae4e2bab24542a8b86b12c8cb89230463593c60d08c4b8d3"
4646

4747
VIRTUALENV_VERSION=20.4.7
4848
VIRTUALENV_REQUIREMENTS=$(
@@ -282,9 +282,13 @@ function bootstrap_pex {
282282
function scrub_env_vars {
283283
# Ensure the virtualenv PEX runs as shrink-wrapped.
284284
# See: https://github.com/pantsbuild/setup/issues/105
285-
if [[ -n "${!PEX_@}" ]]; then
286-
warn "Scrubbing ${!PEX_@}"
287-
unset "${!PEX_@}"
285+
local -r pex_env_vars=(${!PEX_@})
286+
if [[ ! ${#pex_env_vars[@]} -eq 0 ]]; then
287+
local -r pex_env_vars_to_scrub="${pex_env_vars[@]/PEX_ROOT}"
288+
if [[ -n "${pex_env_vars_to_scrub[@]}" ]]; then
289+
warn "Scrubbing ${pex_env_vars_to_scrub[@]}"
290+
unset ${pex_env_vars_to_scrub[@]}
291+
fi
288292
fi
289293
# Also ensure pip doesn't think packages on PYTHONPATH
290294
# are already installed.

0 commit comments

Comments
 (0)