Installed modules from GitHub Packages with upper case in name cannot be imported on Linux as PSResourceGet lower cases on install
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 55/100
Direção de pesquisa
Reproduce the issue with Install-PSResource on Linux using a GitHub Packages module whose name contains uppercase letters, then test Import-Module ModuleName. Trace the PSResourceGet installation path and compare the installed module name with the import lookup; done means the module remains importable with its original name, including on the reported Linux environment.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
When installing a PowerShell module hosted in Github Packages with PSResourceGet on Linux the module gets lowered cased. This breaks the ability to import it the module.
Please see details in these two issues linked. I have been attempting to get traction on this for ~3 months, but the other 2 issues seem to be orphaned.
- #1446 Install-PSResource installs Script module to lowercase directory
- #1402 Installed modules from GitHub Packages with upper case in name cannot be imported on Linux
I am trying to support internal dev teams and engineers on Linux/WSL2 and MacOS and this functionality adds a lot of friction in the ability to migrate away from PowerShellGet.
Asking @SydneyhSmith @alerickson @anamnavi to please take a look if possible, I would greatly appreciate it.
Expected behavior
> Import-Module ModuleName
The above, should work. It does not, because of the casing issue, PowerShell/PSResourceGet doesn't see it at all.
Actual behavior
No module is found when attempting to import.
Error details
At most if you try to specify the name:
> Import-Module: The specified module 'module name' was not loaded because no valid module file was found in any module directory.
This is because of the casing when installed from Github Packages via PSResourceGet.
Environment data
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Binary 1.3.0 preview1 Microsoft.PowerShell.PSResourceGet {Compress-PSResource, Find-PSResource, Get-InstalledPSResource, Get-PSResourceRepository…}
Name Value
---- -----
PSVersion 7.6.3
PSEdition Core
GitCommitId 7.6.3
OS Arch Linux
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
** Note the issue exists in Microsoft.PowerShell.PSResourceGet 1.2.0 as well. I tried the latest preview in the event that it possibly fixed the issue.
Visuals
No response
- Linguagem predominante
- C#
- Estrelas
- 578
- Forks
- 114
- Merge médio
- 16h 26min
- PRs com merge (30d)
- 3
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PowerShell/PSResourceGet
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectoryAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
PowerShell/PSResourceGet#2056 ·
-
feature_request
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
PowerShell/PSResourceGet#2013 · 3 comentários ·
-
Set-PSResourcerepository fails on new installation of PS-Core 7.6.7Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. AbertaNeeds-Triage
Dificuldade 3/5 Meio dia Facilidade para iniciantes 52/100
PowerShell/PSResourceGet#2066 · 1 comentário ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
PowerShell/PSResourceGet#2063 · 5 comentários ·
-
PSResourceGet 1.3.0-preview2 error when installing AZ ModuleTalvez já em andamento @alerickson assumiu há 4 dias. AbertaNeeds-Triage
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
PowerShell/PSResourceGet#2061 · 1 comentário · 1 responsável ·
Todas as issues de PowerShell/PSResourceGet
Issues semelhantes
-
bug priority: P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Parameterless constructor is not a must-provided by user when a struct has a field initializerAberta:watch: Not Triaged dotnet-csharp/svc fundamentals/subsvc
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
Wrong values of Kernel32.FileShare.Delete and Kernel32.FileAttributes.PosixSemanticsTalvez já em andamento @ElectLive assumiu hoje. Abertabug good first issue help wanted
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 83/100
ForNeVeR/TruePath#241 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
files-community/Files#19047 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia