Skip to content

Commit efb726f

Browse files
authored
Fix PANTS_SHA install caching. (#174)
Fixes #173
1 parent 7c46135 commit efb726f

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@
1313
/.pants.d/
1414
/.pids/
1515

16+
# Python bytecode
17+
__pycache__/

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes
22

3+
## 0.6.1
4+
5+
This release fixes `PANTS_SHA` support to properly cache the resulting Pants install.
6+
37
## 0.6.0
48

59
Support the `PANTS_TOML` environment variable for specifying a location other than the project's

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ members = [
66
[package]
77
name = "scie-pants"
88
description = "Protects your Pants from the elements."
9-
version = "0.6.0"
9+
version = "0.6.1"
1010
edition = "2021"
1111
authors = [
1212
"John Sirois <[email protected]>",

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ fn get_pants_process() -> Result<Process> {
248248
env.push(("_PANTS_OVERRIDE_VERSION".into(), version.clone().into()));
249249
}
250250
env.push(("PANTS_VERSION".into(), version.into()));
251-
} else {
251+
} else if env_pants_sha.is_none() {
252252
// Ensure the install binding always re-runs when no Pants version is found so that the
253253
// the user can be prompted with configuration options.
254254
env.push((

0 commit comments

Comments
 (0)