Once saved and placed in the cache, some modules will be impossible to load under Ubuntu #54
Labels
documentation
Improvements or additions to documentation
PSResourceGet
Affected in case of migration to PSResourceGet
Resolution-External
The issue is caused by external component(s)
Once saved and placed in the cache, some modules will be impossible to load under Ubuntu. This concerns primary modules or dependent modules.
While some module name duplication scenarios across multiple repositories are problematic, the content of a nuget package is case-sensitive only for OSs using a case-sensitive FileSystem.
This is a different naming issue between directory name and manifest or module name if no manifest exists. This issue is seen here.
The use of Publish-Module seems to limit this naming problem which is known as much on the Powershell repository as that of PowershellGetv2 and to a lesser extent for PSGallery.
Unfortunately, there is no solution at the moment. In addition, the new version PowershellGet seems for the moment also concerned...
For PSModuleCache I plan to add a check on the respect of naming between the name of the nuget package, the name of the manifest and the name of the module.
This control will generate a warning which is not intended to be blocking.
We can reproduce this bug as follows (we can publish a module without using Publish-module):
In the next version we know each module to save and its dependencies, this control can be done on all the modules installed via a call to Save-Module.
Examples of modules concerned :
https://www.powershellgallery.com/packages/AzureRM.profile/5.8.3
https://www.powershellgallery.com/packages/psnotification/0.5.3
https://www.powershellgallery.com/packages/PSColor/1.0.0.0
https://www.powershellgallery.com/packages/fifa2018/0.2.45
Other issue:
https://stackoverflow.com/questions/55411029/azure-powershell-az-module-not-working-on-ubuntu-hosted-build-agent
The text was updated successfully, but these errors were encountered: