Skip to content

De-duplicate library app dependencies when delivering app source apps. - #2465

Open
spetersenms wants to merge 3 commits into
microsoft:mainfrom
spetersenms:spetersen-microsoft-duplicate-appsource-dependencies
Open

spetersenms wants to merge 3 commits into
microsoft:mainfrom
spetersenms:spetersen-microsoft-duplicate-appsource-dependencies

Conversation

@spetersenms

@spetersenms spetersenms commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

❔What, Why & How

If an app A has a dependency to X with version 1.1 and app B has a dependency to A and to X with version 1.2, then the dependencies zip will include X twice. X should be de-duplicated such that only the latest version remains.

Related to issue: #2405

✅ Checklist

  • Add tests (E2E, unit tests)
  • Update RELEASENOTES.md
  • Update documentation (e.g. for new settings or scenarios)
  • Add telemetry

@spetersenms
spetersenms requested a review from a team as a code owner November 18, 2026 14:13
Copilot AI balanced review requested due to automatic review settings November 18, 2026 14:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the AppSource library deduplication change.

No open issues 🎉

What changed in this PR

Addresses #2405 by deduplicating library apps before AppSource submission, preventing duplicate app IDs from causing publishing failures.

Changes:

  • Keeps the highest version per library app ID, retaining the first package for equal versions and excluding the main app’s ID.
  • Applies filtering before submission without changing dependency build or release artifacts.
  • Adds unit tests and documents the selection behavior.
File Description
Tests/​Deliver.Module.Test.ps1 Tests version selection, duplicate handling, ordering, exclusions, and metadata errors.
Scenarios/​PublishToAppSource.md Documents library selection rules and unchanged dependency artifacts.
RELEASENOTES.md Records the AppSource publishing fix for #2405.
Actions/​Deliver/​Deliver.psm1 Adds and exports the library app deduplication helper.
Actions/​Deliver/​Deliver.ps1 Validates the main package and filters libraries before submission.

Review effort: Balanced

Comment thread RELEASENOTES.md Outdated

### Issues

- Issue 2405 - AppSource publishing now submits only the highest available version of each library app by app ID across project apps and included dependencies. Duplicate versions and packages with the main app's ID are excluded from library submissions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

A new version of AL-Go (v10.1) has been released.

Please move your release notes changes to above the ## v10.1 section in the RELEASENOTES.md file.

This ensures your changes are included in the next release rather than being listed under an already-released version.

This branch has not been deployed

No deployments
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.

[Bug]: Duplicated dependicies with different versions with publishing to AppSource

3 participants