Update the macos package name for preview releases to match the previous pattern#26429
Merged
TravisEz13 merged 2 commits intoPowerShell:masterfrom Nov 12, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates the macOS package naming convention for preview releases. Instead of using powershell-preview-X.Y.Z-preview.N pattern, preview packages now follow the same pattern as stable releases (powershell-X.Y.Z-preview.N), where the preview designation is indicated solely by the version string rather than the package name prefix.
Key Changes
- Removed the
elseif ($IsPreview)branch that added-previewto package names for non-LTS preview builds - Updated regex patterns in test and validation files to match the new naming convention (removing
previewas a name prefix option) - Clarified comments to explain that preview/rebuild versions are identified by the version string itself
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| tools/packaging/packaging.psm1 | Removed logic that added -preview prefix to package names for preview releases |
| test/packaging/macos/package-validation.tests.ps1 | Updated regex pattern and comments to validate new naming convention |
| .pipelines/templates/release-validate-packagenames.yml | Updated regex pattern to remove (osx\.10\.12)? legacy pattern and align with new naming |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
daxian-dbw
approved these changes
Nov 12, 2025
TravisEz13
added a commit
to TravisEz13/PowerShell
that referenced
this pull request
Nov 12, 2025
…ous pattern (PowerShell#26429) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
8 tasks
adityapatwardhan
pushed a commit
to adityapatwardhan/PowerShell
that referenced
this pull request
Dec 2, 2025
…ous pattern (PowerShell#26429) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
9 tasks
adityapatwardhan
added a commit
to adityapatwardhan/PowerShell
that referenced
this pull request
Dec 5, 2025
Update test/packaging/macos/package-validation.tests.ps1 with correct regex pattern for macOS package naming validation. This file was missed in the original backport PR PowerShell#26562. Changes: - Remove (-preview|-lts)? pattern (no more -preview in names) - Update to (lts-)? - only LTS gets prefix - Update comments to reflect new naming convention - Match validation used in release-validate-packagenames.yml
9 tasks
SIRMARGIN
pushed a commit
to SIRMARGIN/PowerShell
that referenced
this pull request
Dec 12, 2025
…ous pattern (PowerShell#26429) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
kilasuit
pushed a commit
to kilasuit/PowerShell
that referenced
this pull request
Jan 2, 2026
…ous pattern (PowerShell#26429) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the macos package name for preview releases to match the previous pattern.