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

Change packaging to differentiate only between major versions and previews#6968

Merged
TravisEz13 merged 5 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
rjmholt:linux-package-renamerjmholt/PowerShell:linux-package-renameCopy head branch name to clipboard
Jun 5, 2018
Merged

Change packaging to differentiate only between major versions and previews#6968
TravisEz13 merged 5 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
rjmholt:linux-package-renamerjmholt/PowerShell:linux-package-renameCopy head branch name to clipboard

Conversation

@rjmholt

@rjmholt rjmholt commented May 31, 2018

Copy link
Copy Markdown
Collaborator

PR Summary

This is breaking as it changes the symbolic links used to run PowerShell from preview builds to
* Previews linked to /usr/bin/pwsh-preview on linux and /usr/local/bin/pwsh-preview on macOS

Change the *nix packaging over with the following changes:

  • Package name (as used by e.g. apt):
    • Non-preview releases are namedpowershell
    • Preview releases are named powershell-preview
  • Installation path:
    • No longer looks like /opt/microsoft/powershell/6.1.0/ or /opt/microsoft/powershell/6.1.0-preview.1/
    • Non-previews go to a path like /opt/microsoft/powershell/6/
    • Previews go to a path like /opt/microsoft/powershell/6-preview/
  • Path to executable symlink:
    • Allows SxS with preview
    • Non-previews linked to /usr/bin/pwsh or /usr/local/bin/pwsh on macOS
    • Previews linked to /usr/bin/pwsh-preview or /usr/local/bin/pwsh-preview on macOS

Implements PowerShell/PowerShell-RFC#115 (comment)

PR Checklist

@iSazonov

iSazonov commented Jun 1, 2018

Copy link
Copy Markdown
Collaborator

Seems typo in PR description "Preview releases are named powershell-release" -> "◦Preview releases are named powershell-preview".

@bergmeister

Copy link
Copy Markdown
Contributor

I don't want to convolute this PR but I would like to gently remind that implementing isssue #6317 would be useful for people using previews. Personally, I mostly use only either the RTM or the daily build.

$Suffix = $packageVersion
}
# Break the version down into its components, we are interested in the major version
$VersionMatch = [regex]::Match($Version, '(\d+)(?:.(\d+)(?:.(\d+)(?:-preview(?:.(\d+))?)?)?)?')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: use PowerShell syntax

@TravisEz13 TravisEz13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With minor comment

@TravisEz13 TravisEz13 merged commit f559acf into PowerShell:master Jun 5, 2018
@TravisEz13 TravisEz13 added WG-Maintainers-Build specific to affecting the build Breaking-Change breaking change that may affect users labels Jun 5, 2018
@rjmholt rjmholt deleted the linux-package-rename branch June 22, 2018 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking-Change breaking change that may affect users WG-Maintainers-Build specific to affecting the build

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.