Skip to content

fix: correct package target format in xlings remove for namespaced versions#214

Merged
Sunrisepeak merged 1 commit intomainfrom
fix/remove-ns-version-target-format
Mar 17, 2026
Merged

fix: correct package target format in xlings remove for namespaced versions#214
Sunrisepeak merged 1 commit intomainfrom
fix/remove-ns-version-target-format

Conversation

@Sunrisepeak
Copy link
Copy Markdown
Member

Summary

  • xlings remove constructed malformed target strings for namespaced versions (e.g. rosdep@local:0.26.0 instead of local:rosdep@0.26.0)
  • Use xvm::parse_ns_version() to split namespace from version and place it before the package name
  • Fixes catalog lookup failure when removing packages installed from namespaced sources

Test plan

  • xmake build compiles successfully
  • xmake test passes
  • xlings remove <pkg> correctly resolves namespaced package targets

🤖 Generated with Claude Code

…versions

`xvm::get_active_version()` returns namespaced versions like "local:0.26.0".
The old code naively concatenated this as "rosdep@local:0.26.0", but the
catalog parser expects "local:rosdep@0.26.0" (source before name). Use
`xvm::parse_ns_version()` to split namespace from version and reconstruct
the target string in the correct order.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Sunrisepeak Sunrisepeak merged commit 88552fa into main Mar 17, 2026
3 checks passed
@Sunrisepeak Sunrisepeak deleted the fix/remove-ns-version-target-format 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