Skip to content

[codex] Improve release asset selection#18

Merged
halkn merged 1 commit into
mainfrom
feat/fix-multiple-assets
Apr 25, 2026
Merged

[codex] Improve release asset selection#18
halkn merged 1 commit into
mainfrom
feat/fix-multiple-assets

Conversation

@halkn

@halkn halkn commented Apr 24, 2026

Copy link
Copy Markdown
Owner

Summary

Improve automatic GitHub release asset selection so ptm can handle common ambiguous release layouts without per-tool platform overrides.

Details

The resolver now prefers Linux musl assets over gnu assets, prefers .tar.xz over .tar.gz, allows OS-only assets when no architecture-specific asset exists, and deprioritizes lightweight variants such as light, lite, minimal, and slim when a normal asset is available.

This fixes tools like fd, lsd, delta, starship, stylua, shellcheck, and selene where release assets can otherwise tie or omit architecture tokens.

Validation

  • uv run pytest
  • uv run ruff check src tests
  • uv run ty check src tests

@halkn halkn marked this pull request as ready for review April 25, 2026 00:04
@halkn halkn merged commit a7d06b2 into main Apr 25, 2026
1 check passed
@halkn halkn deleted the feat/fix-multiple-assets branch April 25, 2026 00:27
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.

1 participant