-
-
Notifications
You must be signed in to change notification settings - Fork 811
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
Simplify install.ps1 and move core module files under src/ #376
Conversation
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.
BTW can we move install.ps1 to the chocolatey dir? Shipping this file in the module may lead to confusion. Also both it and CheckVersion.ps1 check if git is installed.
Let's leave install.ps1
in the project root, for those who get posh-git via git clone
or ZIP download. It is greatly simplified by #358, which I haven't had a chance to test/finish yet, and we shouldn't need to ship it with the Chocolatey package at all.
@@ -21,7 +22,7 @@ Describe 'Utils Function Tests' { | |||
Get-FileEncoding $profilePath | Should Be 'utf8' | |||
$content = Get-Content $profilePath | |||
$content.Count | Should Be 2 | |||
$modulePath = Resolve-Path $PSScriptRoot\.. | |||
# $modulePath = Resolve-Path $PSScriptRoot\.. |
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.
Delete?
Will this cause merge headaches for the outstanding PRs? |
a6aafd7
to
92bfdfc
Compare
Kind of. I wasn't comfortable with the overlap between this and #358, so I've overwritten your changes here based on the non-Chocolatey changes that ended up over there. Net result:
Note: there are currently a few commits in this branch marked as |
So should I run |
9524846
to
fa7941b
Compare
Yep, looks good as merged. |
We simply need to call out that we want to load the post-git PowerShell module. Caused by breaking change from the posh-git project: dahlbyk/posh-git#376
This moves the core module files under a src dir. BTW can we move install.ps1 to the chocolatey dir? Shipping this file in the module may lead to confusion. Also both it and CheckVersion.ps1 check if git is installed.