Skip to content

Expand-Archive error #19

Open
Open
@Kirikou974

Description

@Kirikou974

Hello,

I was trying to use your script to install some random powershell module on github.
I stumbled upon an error that happens during the Expand-Archive phase.
It looks like using a file hash generates as a folder name that is too long for windows (well I guess).
I did have to do some debugging because the Expand-Archive cmdlet does not show the correct error message when the path is too loong => PowerShell/Microsoft.PowerShell.Archive#69
To fix it temporarily I replaced line 53 of InstallModuleFromGitHub.psm1 $tmpDir = "$tmpDir/$fileHash" with $tmpDir = "$tmpDir/$targetModuleName" directly in C:\Program Files\WindowsPowerShell\Modules\InstallModuleFromGitHub\1.4.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions