Closed kars7e closed 6 years ago
When using on linux with PowerShell Core 6.0.1, I'm getting following error:
Get-PSDependScript : Could not find path '/root/.local/share/powershell/Modules/PSDepend/0.1.64/PSDependScripts/noop.ps1' for dependency Noop. Origin: noop.ps1 At /root/.local/share/powershell/Modules/PSDepend/0.1.64/Public/Invoke-DependencyScript.ps1:80 char:27 + $DependencyDefs = Get-PSDependScript + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-PSDependScript
This seems to be caused by the fact Noop dependency type is defined with lower case noop.ps1:
Noop
noop.ps1
Noop = @{ Script = 'noop.ps1' Description = 'Display parameters that a depends script would receive. Use for testing and validation.' }
But the filename is with capital N:
N
$ ls PSDependScripts | grep -i noop Noop.ps1
hiyo! good catch!
If you have time, want to give it a shot with Script = 'Noop.ps1' and submit a quick PR if it works?
Script = 'Noop.ps1'
Cheers!
When using on linux with PowerShell Core 6.0.1, I'm getting following error:
This seems to be caused by the fact
Noop
dependency type is defined with lower casenoop.ps1
:But the filename is with capital
N
: