Skip to content

Commit f234234

Browse files
authored
Fix up self-update to skip current version. (#21)
Previously the scie-pants would update itself to its same version instead of short circuiting.
1 parent bb62b59 commit f234234

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

CHANGES.md

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

3+
## 0.1.9
4+
5+
This release fixes a bug using `SCIE_BOOT=update scie-pants` to have
6+
`scie-pants` update itself to the latest stable release. Previously, it
7+
would always update to itself if there was no greater stable version
8+
released. Now, it properly short-circuits and informs that there is no
9+
newer version available.
10+
311
## 0.1.8
412

513
The 1st public release of the project.

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
@@ -5,7 +5,7 @@ members = [
55

66
[package]
77
name = "scie-pants"
8-
version = "0.1.8"
8+
version = "0.1.9"
99
edition = "2021"
1010
authors = [
1111
"John Sirois <[email protected]>",

tools/src/scie_pants/update_scie_pants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def main() -> NoReturn:
255255
maybe_release = find_latest_production_release(
256256
ptex, platform=options.platform, github_api_bearer_token=options.github_api_bearer_token
257257
)
258-
if not maybe_release or maybe_release.version < options.current_version:
258+
if not maybe_release or maybe_release.version <= options.current_version:
259259
info(f"No new releases of {BINARY_NAME} were found.")
260260
sys.exit(0)
261261
release = maybe_release

0 commit comments

Comments
 (0)