Skip to content

make macOS package use a consistent path - #7006

Merged
Travis Plunk (TravisEz13) merged 3 commits into
PowerShell:masterfrom
TravisEz13:mac-package-rename
Jun 6, 2018
Merged

make macOS package use a consistent path#7006
Travis Plunk (TravisEz13) merged 3 commits into
PowerShell:masterfrom
TravisEz13:mac-package-rename

Conversation

@TravisEz13

@TravisEz13 Travis Plunk (TravisEz13) commented Jun 5, 2018

Copy link
Copy Markdown
Member

PR Summary

Address mac portions of PowerShell/PowerShell-RFC#115 (comment)

  • Make path when stable /usr/local/microsoft/powershell/6
    • when not stable (preview) /usr/local/microsoft/powershell/6-preview and symlink name pwsh-preview
  • allow side-by-side install of stable and preview

Also:

  • fix an issue where the utime work around for mac requires sudo
  • refactor some code into common functions

PR Checklist

@TravisEz13 Travis Plunk (TravisEz13) changed the title Mac package rename make macOS package use a consistent path Jun 5, 2018
@TravisEz13 Travis Plunk (TravisEz13) added the Breaking-Change breaking change that may affect users label Jun 5, 2018

@rjmholt Rob Holt (rjmholt) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I've tested this out on Ubuntu 16.04 (i.e. package and install) and it works.

Tested as non-sudo, and package-install-package path. Works well.

Code changes look good.

Test-IsPreview -version '6.1.0-sometthing' # returns true
Test-IsPreview -version '6.1.0' # returns false
#>
function Test-IsPreview

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Only note here is that a string like "6.0.0-alpha.13-1557-gd67d87c" also passes this test. Just want to make sure that's intended behaviour (that string gets caught by the validation attribute so not a big concern).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

an alpha would be considered a preview. basically anything with a dash (-) in the version is a preview.

@TravisEz13 Travis Plunk (TravisEz13) removed the Breaking-Change breaking change that may affect users label Jun 5, 2018
@TravisEz13

Copy link
Copy Markdown
Member Author

removing breaking change as the breaking part was made in a previous change.

@daxian-dbw Dongbo Wang (daxian-dbw) 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.

LGTM

@TravisEz13
Travis Plunk (TravisEz13) merged commit cecdd1e into PowerShell:master Jun 6, 2018
@TravisEz13
Travis Plunk (TravisEz13) deleted the mac-package-rename branch June 6, 2018 17:28
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
Address mac portions of PowerShell/PowerShell-RFC#115 (comment)

Make path when stable /usr/local/microsoft/powershell/6
when not stable (preview) /usr/local/microsoft/powershell/6-preview and symlink name pwsh-preview
allow side-by-side install of stable and preview
Also:

fix an issue where the utime work around for mac requires sudo
refactor some code into common functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants