-
Notifications
You must be signed in to change notification settings - Fork 8.1k
make macOS package use a consistent path #7006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…leases and /usr/local/microsoft/powershell/6-preview for other releases.
rjmholt
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
|
removing breaking change as the breaking part was made in a previous change. |
daxian-dbw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR Summary
Address mac portions of PowerShell/PowerShell-RFC#115 (comment)
/usr/local/microsoft/powershell/6/usr/local/microsoft/powershell/6-previewand symlink name pwsh-previewAlso:
utimework around for mac requires sudoPR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests