Skip to content

Expand-Archive error #19

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 => https://github.com/PowerShell/Microsoft.PowerShell.Archive/issues/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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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