Skip to content

Fix module import on case-sensitive file systems#4

Open
Suerlink wants to merge 1 commit into
vmelamed5:VpasModulefrom
Suerlink:fix-case-sensitive-module-loader
Open

Fix module import on case-sensitive file systems#4
Suerlink wants to merge 1 commit into
vmelamed5:VpasModulefrom
Suerlink:fix-case-sensitive-module-loader

Conversation

@Suerlink
Copy link
Copy Markdown

This (tiny fix) fixes module import on Linux/macOS where the file system is case-sensitive.

The module loader looked for Public and Private, but the repository folders are named public and private. On Windows this still works, but on Linux PowerShell could not find the folders and exported zero commands.

This change keeps the path behavior first, then falls back to resolving module subfolders without case compat.

Verified on Ubuntu with PowerShell 7.6.1:

  • Test-ModuleManifest succeeds
  • Import-Module succeeds
  • module exports 266 commands

Note: I see this script has an Authenticode signature block, so maintainer will need to re-sign it during release.

@vmelamed5
Copy link
Copy Markdown
Owner

excellent. Will add in the next release, much appreciated @Suerlink

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

Successfully merging this pull request may close these issues.

2 participants