Skip to content

Instantly share code, notes, and snippets.

@gep13
Created April 7, 2015 20:43
Show Gist options
  • Save gep13/50150201ae2bd196f9b7 to your computer and use it in GitHub Desktop.
Save gep13/50150201ae2bd196f9b7 to your computer and use it in GitHub Desktop.
Problem with Generate-BinFile
D:\Users\gep13\Downloads> choco install githubreleasemanager.portable -version 0.1.0
Chocolatey v0.9.9.4
Installing the following packages:
githubreleasemanager.portable
By installing you accept licenses for the packages.
githubreleasemanager.portable v0.1.0
Found 'chocolateyInstall.ps1':
Generate-BinFile "ghrm" "$packageFolder\Tools\GitHubReleaseManager.Cli.exe"
Do you want to run the script?
NOTE: If you choose not to run the script, the installation will
fail.
Skip is an advanced option and most likely will never be wanted.
1) yes
2) no [Default - Press Enter]
3) skip
1
WARNING: The names of some imported commands from the module 'chocolateyInstaller' include unapproved verbs that might
make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the
Verbose parameter. For a list of approved verbs, type Get-Verb.
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:24 char:37
+ $packageBatchFileName = Join-Path $nugetExePath "$name.bat"
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
mand
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:25 char:36
+ $packageBashFileName = Join-Path $nugetExePath "$name"
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
mand
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:26 char:36
+ $packageShimFileName = Join-Path $nugetExePath "$name.exe"
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
mand
Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:28 char:17
+ if (Test-Path ($packageBatchFileName)) {Remove-Item $packageBatchFileName -for ...
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCom
mand
Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:29 char:17
+ if (Test-Path ($packageBashFileName)) {Remove-Item $packageBashFileName -force ...
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCom
mand
You cannot call a method on a null-valued expression.
At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:31 char:3
+ $path = $path.ToLower().Replace($nugetPath.ToLower(), "..\").Replace("\\","\")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\ProgramData\chocolatey\helpers\functions\Generate-BinFile.ps1:70 char:17
+ if (Test-Path ($packageShimFileName)) {
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCom
mand
githubreleasemanager.portable install not successful.
Error while running 'C:\ProgramData\chocolatey\lib\githubreleasemanager.portable\tools\chocolateyInstall.ps1'.
See log for details.
Chocolatey installed 0/1 package(s). 1 package(s) failed.
See the log for details.
Failures:
- githubreleasemanager.portable
D:\Users\gep13\Downloads>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment