Installed modules from GitHub Packages with upper case in name cannot be imported on Linux as PSResourceGet lower cases on install
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- C#
- Stelle
- 577
- Fork
- 114
- Merge medio
- 23h 17m
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PowerShell/PSResourceGet
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectoryAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
PowerShell/PSResourceGet#2056 ·
I maintainer di solito rispondono entro 1 giorno
-
feature_request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
PowerShell/PSResourceGet#2013 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Needs-Triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
PowerShell/PSResourceGet#2059 ·
I maintainer di solito rispondono entro 1 giorno
-
Use GitHub app token to authenticate to GitHub resourcesForse già presa @adityapatwardhan l’ha presa 12 giorni fa. Apertafeature_request Needs-Triage
PowerShell/PSResourceGet#2057 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Needs-Triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
PowerShell/PSResourceGet#2055 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PowerShell/PSResourceGet
Issue simili
-
NEW ISSUE Requestor-TML Maintainers Type: Change/Feature Request
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
tModLoader/tModLoader#5476 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
521xueweihan/HelloGitHub#3845 · 1 commento ·
-
possible bug
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
-
documentation task
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
lay295/TwitchDownloader#1675 ·