You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(cli): move update-check into _version.py, reuse upstream primitives
Following PR #2550 which extracted version handling into _version.py,
move the opt-in startup update-check helpers there too and replace our
duplicates with upstream's:
- _get_installed_version (was: local get_speckit_version with pyproject fallback)
- _fetch_latest_release_tag (was: local _fetch_latest_version; gains auth via open_url)
- _is_newer (was: local _parse_version_tuple; proper PEP 440 via packaging.Version)
Behavior preserved: same opt-in env var, same 24h TTL, same negative caching,
same CI/TTY skip guards. Cache file format unchanged.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
9
9
- feat(cli): opt-in launch warning when a newer spec-kit release is available; enable with `SPECIFY_ENABLE_UPDATE_CHECK=1` (or `true`/`yes`/`on`), cached for 24h, and suppressed in non-interactive shells and `CI=1` (#1320)
10
10
- fix(cli): cache update-check failures so transient outages don't trigger a network call on every CLI invocation (#1320)
11
+
- refactor(cli): move update-check helpers into `_version.py` and reuse the existing `_get_installed_version` / `_fetch_latest_release_tag` / `_is_newer` primitives from #2550 (#1320)
0 commit comments