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

Commit 02047de

Browse files
Merge pull request #7 from grapl-security/update-pants-version
Update Pants Version
2 parents 370d6e0 + f42fd60 commit 02047de

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
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.

pants.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[GLOBAL]
2-
pants_version = "2.12.0"
2+
pants_version = "2.13.0"
33
backend_packages = [
44
"pants.backend.docker",
55
"pants.backend.docker.lint.hadolint",

0 commit comments

Comments
 (0)