Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[release/v7.6.2] Specify linux-arm64 runtime if package type is deb-arm64 in packaging.psm1#27440

Merged
daxian-dbw merged 1 commit into
PowerShell:release/v7.6.2PowerShell/PowerShell:release/v7.6.2from
daxian-dbw:backport/release/v7.6.2/27401-87ff80b15daxian-dbw/PowerShell:backport/release/v7.6.2/27401-87ff80b15Copy head branch name to clipboard
May 13, 2026
Merged

[release/v7.6.2] Specify linux-arm64 runtime if package type is deb-arm64 in packaging.psm1#27440
daxian-dbw merged 1 commit into
PowerShell:release/v7.6.2PowerShell/PowerShell:release/v7.6.2from
daxian-dbw:backport/release/v7.6.2/27401-87ff80b15daxian-dbw/PowerShell:backport/release/v7.6.2/27401-87ff80b15Copy head branch name to clipboard

Conversation

@daxian-dbw
Copy link
Copy Markdown
Member

Backport of #27401 to release/v7.6.2

Triggered by @daxian-dbw on behalf of @anamnavi

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Fixes arm64 Debian packaging by specifying the linux-arm64 runtime in the deb-arm64 branch of Start-PSPackage. This is a required follow-up fix to PR #26925 which introduced the deb-arm64 package type.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Verified via the original PR. The fix adds a condition to set the linux-arm64 runtime when Start-PSPackage is called with deb-arm64 package type, preventing packaging failures for that architecture.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Targeted fix to the deb-arm64 code path added by PR #26925. Without this, arm64 Debian packaging fails due to defaulting to linux-x64 runtime. Only affects the new deb-arm64 package type, no impact on existing types.

@daxian-dbw daxian-dbw requested a review from jshigetomi as a code owner May 13, 2026 22:09
Copilot AI review requested due to automatic review settings May 13, 2026 22:09
@daxian-dbw daxian-dbw requested a review from a team as a code owner May 13, 2026 22:09
@daxian-dbw daxian-dbw added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label May 13, 2026
Copy link
Copy Markdown
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

Backports the packaging fix to release/v7.6.2 so Start-PSPackage -Type deb-arm64 selects the correct .NET RID (linux-arm64) when resolving build options, preventing Debian ARM64 packaging from defaulting to linux-x64.

Changes:

  • Add a deb-arm64 branch in Start-PSPackage runtime/configuration resolution to force -Runtime linux-arm64 for New-PSOptions.

Comment on lines +124 to +126
elseif ($Type.Count -eq 1 -and $Type[0] -eq "deb-arm64") {
New-PSOptions -Configuration "Release" -Runtime 'linux-arm64' -WarningAction SilentlyContinue | ForEach-Object { $_.Runtime, $_.Configuration }
}
@daxian-dbw daxian-dbw merged commit 4c69848 into PowerShell:release/v7.6.2 May 13, 2026
37 of 38 checks passed
@daxian-dbw daxian-dbw deleted the backport/release/v7.6.2/27401-87ff80b15 branch May 13, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.