Skip to content

Fix virtual package orphan detection in deps list#23

Merged
danielmeppiel merged 1 commit intomainfrom
fix-deps
Oct 30, 2025
Merged

Fix virtual package orphan detection in deps list#23
danielmeppiel merged 1 commit intomainfrom
fix-deps

Conversation

@danielmeppiel
Copy link
Collaborator

Virtual packages with extensions like .prompt.md were incorrectly flagged as orphaned by apm deps list because the comparison used raw repo_url instead of the sanitized virtual package name.

Now correctly builds expected package names using get_virtual_package_name() for virtual packages, matching the installation folder structure.

Virtual packages with extensions like .prompt.md were incorrectly
flagged as orphaned because the comparison used raw repo_url instead
of the sanitized virtual package name.

Now correctly builds expected package names using get_virtual_package_name()
for virtual packages, matching the installation folder structure.
@danielmeppiel danielmeppiel added the bug Something isn't working label Oct 30, 2025
Copilot AI review requested due to automatic review settings October 30, 2025 12:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the orphaned package detection logic in the apm deps list command to properly handle virtual packages. Previously, the code was comparing the raw repo_url against installed package names, which failed for virtual packages that use a sanitized naming scheme.

Key Changes

  • Updated orphaned package detection to use the same naming convention for virtual packages (org/repo-name-package-name) as used during installation
  • Maintained existing behavior for regular packages (org/repo-name)
  • Aligned the logic with the existing implementation in cli.py

@danielmeppiel danielmeppiel merged commit 543baac into main Oct 30, 2025
28 checks passed
@danielmeppiel danielmeppiel deleted the fix-deps branch February 27, 2026 09:41
danielmeppiel added a commit that referenced this pull request Mar 9, 2026
- Dynamic package type in synthesized apm.yml based on actual components (#12)
- Name validation warning in parse_plugin_manifest (#13)
- Clean .prompt.md rename logic (#14)
- Install counter includes cached packages (#15)
- Package type persisted in lockfile (#17)
- Custom component path arrays from plugin.json (#23)
- README: plugin as supported source, awesome-copilot example, docs link
- CHANGELOG: unreleased entry for plugin support
- docs: MARKETPLACE_PLUGIN in manifest-schema, dependencies, primitives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants