Skip to content

Conversation

@rjmholt
Copy link
Collaborator

@rjmholt rjmholt commented May 31, 2018

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
Copy link
Collaborator

iSazonov commented Jun 1, 2018

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

@bergmeister
Copy link
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
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

Copy link
Member

@TravisEz13 TravisEz13 left a comment

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 Area-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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants