Skip to content

[release/v7.4] Correct the package name for .deb and .rpm packages (#26877)#26954

Merged
jshigetomi merged 1 commit intoPowerShell:release/v7.4from
jshigetomi:backport26877
Mar 9, 2026
Merged

[release/v7.4] Correct the package name for .deb and .rpm packages (#26877)#26954
jshigetomi merged 1 commit intoPowerShell:release/v7.4from
jshigetomi:backport26877

Conversation

@jshigetomi
Copy link
Collaborator

Backport of #26877 to release/v7.4

Triggered by @jshigetomi

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)

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

@jshigetomi jshigetomi added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Mar 9, 2026
@jshigetomi jshigetomi changed the title Correct the package name for .deb and .rpm packages (#26877) [release/v7.4] Correct the package name for .deb and .rpm packages (#26877) Mar 9, 2026
@jshigetomi jshigetomi marked this pull request as ready for review March 9, 2026 18:31
@jshigetomi jshigetomi requested a review from a team as a code owner March 9, 2026 18:31
Copilot AI review requested due to automatic review settings March 9, 2026 18:31
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

Backport to release/v7.4 to correct Linux package naming so .deb/.rpm preview channel packages use the expected powershell-preview name (while keeping macOS .pkg naming consistent).

Changes:

  • Update New-UnixPackage to derive $IsPreview from the version string and apply powershell-preview naming for preview deb/rpm packages (but not for osxpkg).
  • Update macos-ci.yml to gate the macOS packaging job on the packagingChanged path-filter output and expose that output from the changes job.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
tools/packaging/packaging.psm1 Adjusts package name selection so preview deb/rpm packages are named powershell-preview (LTS remains powershell-lts).
.github/workflows/macos-ci.yml Changes macOS packaging job trigger condition to use packagingChanged from the repo’s path-filtering action.

needs:
- changes
if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.buildModuleChanged == 'true' }}
if: ${{ needs.changes.outputs.packagingChanged == 'true' }}
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

The job now runs only when needs.changes.outputs.packagingChanged == 'true', but the path-filters action currently (1) does not set packagingChanged for non-PR events (push/workflow_dispatch) and (2) does not include test/packaging/macos/ (or macos-ci.yml) in its packagingChanged paths. This means macOS packaging validation can be skipped when it should run. Consider either expanding the condition (e.g., include source/buildModuleChanged) or updating the path filter so packagingChanged is computed for these cases (ideally in default branch, then backport).

Suggested change
if: ${{ needs.changes.outputs.packagingChanged == 'true' }}
if: ${{ needs.changes.outputs.packagingChanged == 'true' || needs.changes.outputs.source == 'true' || needs.changes.outputs.buildModuleChanged == 'true' }}

Copilot uses AI. Check for mistakes.
$IsPreview = Test-IsPreview -Version $Version -IsLTS:$LTS

# For deb/rpm packages, use the '-lts' and '-preview' channel suffix variants to match existing names on packages.microsoft.com.
# For osxpkg package, only LTS packages get a channel suffix in the name.
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

Grammar nit in comment: “For osxpkg package” should be “For osxpkg packages” (or “For the osxpkg package type”).

Suggested change
# For osxpkg package, only LTS packages get a channel suffix in the name.
# For osxpkg packages, only LTS packages get a channel suffix in the name.

Copilot uses AI. Check for mistakes.
@jshigetomi jshigetomi merged commit 8f8a6fc into PowerShell:release/v7.4 Mar 9, 2026
43 of 44 checks passed
jshigetomi added a commit to jshigetomi/PowerShell that referenced this pull request Mar 9, 2026
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.

3 participants