Skip to content

Commit

Permalink
Fix PANTS_SHA install caching. (#174)
Browse files Browse the repository at this point in the history
Fixes #173
  • Loading branch information
jsirois authored May 9, 2023
1 parent 7c46135 commit efb726f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
/.pants.d/
/.pids/

# Python bytecode
__pycache__/
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 0.6.1

This release fixes `PANTS_SHA` support to properly cache the resulting Pants install.

## 0.6.0

Support the `PANTS_TOML` environment variable for specifying a location other than the project's
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = [
[package]
name = "scie-pants"
description = "Protects your Pants from the elements."
version = "0.6.0"
version = "0.6.1"
edition = "2021"
authors = [
"John Sirois <john.sirois@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ fn get_pants_process() -> Result<Process> {
env.push(("_PANTS_OVERRIDE_VERSION".into(), version.clone().into()));
}
env.push(("PANTS_VERSION".into(), version.into()));
} else {
} else if env_pants_sha.is_none() {
// Ensure the install binding always re-runs when no Pants version is found so that the
// the user can be prompted with configuration options.
env.push((
Expand Down

0 comments on commit efb726f

Please sign in to comment.