Apteco / AptecoPSModules

Apteco PowerShell Modules
https://www.powershellgallery.com/packages?q=Tags%3A%22Apteco%22
MIT License
0 stars 0 forks source link

`Get-PackageSource` lists 4 repositories, `Install-Dependencies` just offers two to choose from #21

Closed schittli closed 1 month ago

schittli commented 1 month ago

Good evening

this could be a small bug:

Although Get-PackageSource returns 4 repositories:

Name                             ProviderName     IsTrusted  Location
----                             ------------     ---------  --------
nuget.org                        NuGet            False      https://api.nuget.org/v3/index.json
private.domain.com               NuGet            False      https://...
PSGallery                        PowerShellGet    True       https://www.powershellgallery.com/api/v2
private.domain.com               PowerShellGet    True       https://...

Install-Dependencies just offers two to choose from:

Install-Dependencies -Module $PgkName
…
VERBOSE: You have at minimum 1 PowerShellGet repository. Good!
Script/module Source
Which PowerShellGet repository do you want to use?
[1]1 - PSGallery  [2]2 - private.domain.com  [?] Help (default is "1"):

Thanks a lot for your great an useful work!, kind regards, Thomas

gitfvb commented 1 month ago

Hi @schittli , Thanks for your message. It is correct that you are only offered 2 repositories. When using the -module parameter, it is looking for repositories that are based on PowerShellGet. You can see the difference in your first table. I hope that helps you. Cheers Florian