Repository navigation
[0.9.0-rc1] Installed modules from GitHub Packages with upper case in name cannot be imported on Linux #1402
Description
Activity
Jakub Tomkiewicz (@jtomkiew-mng) thanks for sharing this! What distro of Linux are you using? What are the LANG and LC_ALL values?
jtomkiew-mng commented
on Sep 13, 2023 AuthorMore actionsThis is the output of
lsb_releaseand env varsLANG,LC_ALLfrom bash:Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy LANG: C.UTF-8 LC_ALL:I've been running this on GitHub
ubuntu-latestrunners so far.Reacted by Anam Naviedjtomkiew-mng commented
on Sep 13, 2023 AuthorMore actionsIn the logs when installing
PascalCaseModuleI've noticed this:VERBOSE: This resource is not a PowerShell package and will be installed to the modules path: /home/runner/.local/share/powershell/Modules.And the installed module
PascalCaseModulecontents contain a.nuspecfile, whilelowercasemoduledoes not (those 2 modules should be identical other than the name and GUID).If it helps I'm attaching installed-modules.zip - zipped both modules as they were installed on that host (contents of
/home/runner/.local/share/powershell/Modules/minusPSResourceGetmodule).Reacted by Anam Naviedadityapatwardhan commented
on Sep 25, 2023 MemberMore actionsWhen the locale setting is C.UTF-8, it is meant to be case sensitive at the OS level. So, comparing a
Pandpwill show them as a different character even with case insensitive comparison. I recommend using a locale without aClikeen-US.UTF-8or using the exact case as for the module names.- addedResolution-AnsweredSuccessfully answered the questionSuccessfully answered the question
on Sep 25, 2023 jtomkiew-mng commented
on Sep 26, 2023 AuthorMore actionsI see no difference, what I did now:
- created a fresh Ubuntu 22.04.3 LTS VM,
- changed default locale to
en-US.UTF-8as Aditya Patwardhan (@adityapatwardhan) suggested, - rebooted,
- installed PowerShell Core,
- installed GitHub runner,
- ran the same workflow as before, same result:
Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=Using all lower case during install or import makes no difference in this case.
This is the latest workflow I've ran: https://github.com/jtomkiew-mng/pwsh-example-module/blob/6e88f68fbc37f5c1d6f603d62bec26ababde92be/.github/workflows/ci.ymlSydneyhSmith commented
on Sep 26, 2023 CollaboratorMore actionsRe-opening to investigate, thanks for testing and letting us know that it repros Jakub Tomkiewicz (@jtomkiew-mng)
Reacted by Jakub Tomkiewicz- addedIssue-BugSomething isn't workingSomething isn't workingand removedResolution-AnsweredSuccessfully answered the questionSuccessfully answered the question
on Sep 26, 2023 rickandersen-forte commented
on Oct 16, 2023 More actions(Should this issue be set back to Open?)
Reacted by Jakub Tomkiewiczjtomkiew-mng commented
on Oct 23, 2023 AuthorMore actionsBoop, there's your feedback bot.
This issue stands as visible by the related issue #1446. Feel free to merge it if need be (in any direction).Currently I'm using a crude workaround on version
1.0.0of PSResourceGet, that boils down to renaming the installed module directory to match the original case before importing.Hello,
This is still an active issue almost 2 years later and is very crude & annoying to work around.
Sydney Smith (@SydneyhSmith), can someone from the PowerShell team please take a look at this? :)
Reacted by Jakub TomkiewiczReacted by Jakub Tomkiewicz, 1d70f and Jakub K.- added a commit that references this issue
on Dec 7, 2025 Sydney Smith (@SydneyhSmith) Anam Navied (@anamnavi) still looking for anything on this as it appears to be abandoned. There is a pending PR in a duplicate issue #1446 that gets most of the way there in terms of a fix. Is this still on the PowerShell Team's radar?
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTODO
Prerequisites
Steps to reproduce
Install and import a module hosted on GitHub Packages that uses upper letters in the name:
Expected behavior
lowercasemodule and PascalCaseModule module are installed and imported.Actual behavior
lowercasemodule module is installed and imported, while PascalCaseModule module is installed but fails to import.Error details
Environment data
Visuals
No response