Skip to content

Commit

Permalink
Install BuildHelpers separately as we need to use -AllowClobber
Browse files Browse the repository at this point in the history
  • Loading branch information
devblackops committed Dec 7, 2017
1 parent a8a9de7 commit 3daea8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
if (-not (Get-Module -Name PSDepend -ListAvailable)) {
Install-module -Name PSDepend -Repository PSGallery
}
Import-Module -Name PSDepend -ErrorAction Stop
Invoke-PSDepend -Path .\requirements.psd1 -Install -Import -Force > $null
Import-Module -Name PSDepend
Invoke-PSDepend -Path .\requirements.psd1 -Install -Import -Force
if (-not (Get-Module -Name BuildHelpers -ListAvailable)) {
Install-Module -Name BuildHelpers -AllowClobber
}
Import-Module -Name BuildHelpers

if ($PSBoundParameters.ContainsKey('help')) {
Get-PSakeScriptTasks -buildFile "$PSScriptRoot\psake.ps1" |
Expand Down
1 change: 0 additions & 1 deletion requirements.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
PSDependOptions = @{
Target = 'CurrentUser'
}
buildhelpers = 'latest'
psake = 'latest'
pester = 'latest'
psscriptanalyzer = 'latest'
Expand Down

0 comments on commit 3daea8b

Please sign in to comment.