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

make macOS package use a consistent path#7006

Merged
TravisEz13 merged 3 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
TravisEz13:mac-package-renameTravisEz13/PowerShell:mac-package-renameCopy head branch name to clipboard
Jun 6, 2018
Merged

make macOS package use a consistent path#7006
TravisEz13 merged 3 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
TravisEz13:mac-package-renameTravisEz13/PowerShell:mac-package-renameCopy head branch name to clipboard

Conversation

@TravisEz13

@TravisEz13 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 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

@rjmholt 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 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 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 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.