Installed modules from GitHub Packages with upper case in name cannot be imported on Linux as PSResourceGet lower cases on install
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- C#
- スター
- 577
- フォーク
- 114
- 平均マージ
- 23時間 17分
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/PSResourceGet のほかの issue
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectoryオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PowerShell/PSResourceGet#2056 ·
メンテナーはふだん 1 日以内に返信
-
feature_request
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
PowerShell/PSResourceGet#2013 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Needs-Triage
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
PowerShell/PSResourceGet#2059 ·
メンテナーはふだん 1 日以内に返信
-
Use GitHub app token to authenticate to GitHub resources対応中かも @adityapatwardhan が 11 日前に担当しました。 オープンfeature_request Needs-Triage
PowerShell/PSResourceGet#2057 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Needs-Triage
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
PowerShell/PSResourceGet#2055 ·
メンテナーはふだん 1 日以内に返信
PowerShell/PSResourceGet の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
lay295/TwitchDownloader#1675 ·
-
copilot documentation
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
space-wizards/RobustToolbox#7119 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
dotnet/Scaffolding#3881 ·
メンテナーはふだん 2 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 4 日以内に返信