Skip to content

feat: default installed check via xvm version query#215

Merged
Sunrisepeak merged 1 commit intomainfrom
feat/default-installed-check-via-xvm
Mar 17, 2026
Merged

feat: default installed check via xvm version query#215
Sunrisepeak merged 1 commit intomainfrom
feat/default-installed-check-via-xvm

Conversation

@Sunrisepeak
Copy link
Member

Summary

  • When a package has no installed hook, fall back to querying the xvm version database (match_version) to detect already-installed packages
  • Prevents redundant re-installs for packages tracked by xvm but lacking a custom installed hook
  • Uses match_version (not has_version) to handle namespace-prefixed versions (e.g. local:0.26.0)

Test plan

  • xmake build compiles cleanly
  • xmake test — existing tests pass
  • Manual: install a package, then re-run xlings install <pkg> — should skip with "already installed in xvm" debug log instead of re-installing

🤖 Generated with Claude Code

When a package has no `installed` hook, fall back to querying the xvm
version database with `match_version` to detect already-installed
packages. This prevents redundant re-installs for packages tracked by
xvm but lacking a custom installed hook.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Sunrisepeak Sunrisepeak merged commit c4f355a into main Mar 17, 2026
3 checks passed
@Sunrisepeak Sunrisepeak deleted the feat/default-installed-check-via-xvm branch March 17, 2026 18:10
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