Skip to content

Conversation

@TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Jun 5, 2018

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 TravisEz13 changed the title Mac package rename make macOS package use a consistent path Jun 5, 2018
@TravisEz13 TravisEz13 added the Breaking-Change breaking change that may affect users label Jun 5, 2018
@TravisEz13 TravisEz13 requested a review from rjmholt June 5, 2018 21:01
Copy link
Collaborator

@rjmholt rjmholt left a comment

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
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
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 TravisEz13 removed the Breaking-Change breaking change that may affect users label Jun 5, 2018
@TravisEz13
Copy link
Member Author

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

Copy link
Member

@daxian-dbw daxian-dbw left a comment

Choose a reason for hiding this comment

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

LGTM

@TravisEz13 TravisEz13 merged commit cecdd1e into PowerShell:master Jun 6, 2018
@TravisEz13 TravisEz13 deleted the mac-package-rename branch June 6, 2018 17:28
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