Skip to content

fix: stop dev-channel upgrade checks from always reporting "at latest" - #34

Merged
renatav merged 1 commit into
mainfrom
renatav/fix-install-args
Aug 4, 2026
Merged

fix: stop dev-channel upgrade checks from always reporting "at latest"#34
renatav merged 1 commit into
mainfrom
renatav/fix-install-args

Conversation

@renatav

@renatav renatav commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

find_compatible_versions() had two compounding bugs that made it silently never see a newer dev build:

  • SpecifierSet.filter() excludes prereleases unless prereleases=True is passed explicitly, which wasn't happening for dev-channel URLs, so filter_versions() always returned an empty list.
  • get_compatible_upgrade_versions() crashed on any non-wheel entry in the index page (e.g. a stray .tar.gz sdist), which happens before the above filtering even runs, so the check errored out entirely on the real Cloudsmith development index.

find_compatible_versions() had two compounding bugs that made it silently
never see a newer dev build:

- SpecifierSet.filter() excludes prereleases unless prereleases=True is
  passed explicitly, which wasn't happening for dev-channel URLs, so
  filter_versions() always returned an empty list.
- get_compatible_upgrade_versions() crashed on any non-wheel entry in the
  index page (e.g. a stray .tar.gz sdist), which happens before the above
  filtering even runs, so the check errored out entirely on the real
  Cloudsmith development index.
@renatav
renatav requested a review from n-dusan August 4, 2026 17:19
@renatav
renatav merged commit 4fde34d into main Aug 4, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants