Repository navigation
Fix staging feed URL after org rename to microsoft/aspire - #15720
Jose Perez Rodriguez (joperezr) merged 1 commit into
Conversation
…/aspire The darc-pub feed prefix changed from darc-pub-dotnet-aspire to darc-pub-microsoft-aspire when the repository moved to the microsoft org. Update the feed URL template and corresponding test assertions. Co-authored-by: Copilot <[email protected]>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15720Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15720" |
There was a problem hiding this comment.
Pull request overview
Updates Aspire CLI’s staging channel feed URL template to reflect the repo migration from dotnet/aspire to microsoft/aspire, ensuring staging resolves packages from the correct DARC-published Azure DevOps feed.
Changes:
- Update
PackagingService.GetStagingFeedUrl()to use the newdarc-pub-microsoft-aspire-{hash}feed prefix. - Update unit tests to assert the new staging feed URLs.
- Update the inline URL template comment to match the new prefix.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Aspire.Cli/Packaging/PackagingService.cs | Switches staging feed URL prefix to darc-pub-microsoft-aspire-* (and updates the nearby template comment). |
| tests/Aspire.Cli.Tests/Packaging/PackagingServiceTests.cs | Updates expected staging feed override URLs in tests. |
| tests/Aspire.Cli.Tests/Packaging/PackageChannelTests.cs | Updates expected staging feed URL used in source details test. |
| // Extract commit hash from assembly version to build staging feed URL | ||
| // Staging feed URL template: https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-aspire-{commitHash}/nuget/v3/index.json | ||
| // Staging feed URL template: https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-microsoft-aspire-{commitHash}/nuget/v3/index.json | ||
| var assembly = Assembly.GetExecutingAssembly(); |
There was a problem hiding this comment.
The comment describes a {commitHash} placeholder, but the implementation truncates the hash to 8 characters (truncatedHash). Update the template/comment to match the actual behavior (e.g., mention the 8-char prefix) so future readers don’t assume the full hash is used.
|
🎬 CLI E2E Test Recordings — 52 recordings uploaded (commit View recordings
📹 Recordings uploaded automatically from CI run #23773495610 |
14bf8c4
into
release/13.2
Description
Fix the staging channel feed URL after the repository migration from
dotnet/aspiretomicrosoft/aspire.The DARC-published feed prefix changed from
darc-pub-dotnet-aspire-{hash}todarc-pub-microsoft-aspire-{hash}as part of the org rename. This updates the feed URL template inPackagingService.GetStagingFeedUrl()and the corresponding test assertions so the staging channel correctly resolves packages from the new feed.Changes:
src/Aspire.Cli/Packaging/PackagingService.cs— URL template and commenttests/Aspire.Cli.Tests/Packaging/PackagingServiceTests.cs— Two test URLstests/Aspire.Cli.Tests/Packaging/PackageChannelTests.cs— One test URLChecklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue: