Find-Module -includeDependencies can return dependencies that come from two repositories.
LaurentDardenne opened this issue · 2 comments
LaurentDardenne commented
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
Expected behavior
Find-Module Duplicate -IncludeDependencies
Version Name Repository Description
------- ---- ---------- -----------
1.0.0 Duplicate PSRepoLocal Module Duplicate
1.0.0 String PSRepoLocal Module String
1.0.0 UpperCase PSRepoLocal Module UpperCaseActual behavior
Find-Module Duplicate -IncludeDependencies
Version Name Repository Description
------- ---- ---------- -----------
1.0.0 Duplicate PSRepoLocal Module Duplicate
1.0.0 string PSGallery Module to execute script operationsIn the case where the repositories contain the same module name but with a different GUID,
the search is done a priori according to the order of declarations of the PsRepositories.
This result is false because the publication/search of a module's dependencies can only be done in a single repository.
Error details
N/AEnvironment data
Name Value
---- -----
PSVersion 5.1.19041.2673
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.2673}
BuildVersion 10.0.19041.2673
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PackageManagement v1.4.8.1
PowerShellGet v2.2.5Version
2.2.5
Visuals
LaurentDardenne commented
One strange behavior.
Tests on my Workstation (Windows 10 Fr)
I run windows powershell, next pwsh under WSL

I close the windows powershell session then the wsl app.
I run again WSL and pwsh :

The result is different.
I'm having the issue with Github Action on Ubuntu and MacOS.
The first execution of the job fails, the restart succeeds...
LaurentDardenne commented

