Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import module on case-sensitive file systems (ie. wsl) #5

Closed
jasonchester opened this issue Dec 11, 2018 · 1 comment
Closed

Comments

@jasonchester
Copy link

On the windows subsystem for linux or any other system running powershell core, Write-ProgressEx is unable to be imported.

This appears to be due to the name of the module in PSGallery being write-ProgressEx instead of Write-ProgressEx

These issues seem to be relevant.

I was able to work around the issue by renaming the module folder from write-ProgressEx to Write-ProgressEx after install.

PS /home/jchester> Install-Module write-ProgressEx -Verbose
PS /home/jchester> Get-Module -ListAvailable *ProgressEx #returns nothing
PS /home/jchester> mv /usr/local/share/powershell/Modules/write-ProgressEx/ /usr/local/share/powershell/Modules/Write-ProgressEx
PS /home/jchester> Get-Module -ListAvailable *ProgressEx

    Directory: /usr/local/share/powershell/Modules


ModuleType Version    Name                                PSEdition ExportedCommands
---------- -------    ----                                --------- ----------------
Script     0.20       Write-ProgressEx                    Desk      {Write-ProgressEx, Get-ProgressEx, Set-ProgressEx}
@mazzy-ax
Copy link
Owner

mazzy-ax commented Aug 2, 2019

The Microsoft PowershellGallery team have changed the name.
https://www.powershellgallery.com/packages/Write-ProgressEx

jasonchester, thanks to you!

@mazzy-ax mazzy-ax closed this as completed Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants