Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give actual reason why module of specified version could not be installed when it was not found #1752

Open
o-l-a-v opened this issue Nov 13, 2024 · 0 comments

Comments

@o-l-a-v
Copy link
Contributor

o-l-a-v commented Nov 13, 2024

Summary of the new feature / enhancement

Windows 11 24H2
PowerShell x64 v7.4.6
Microsoft.PowerShell.PSResourceGet v1.0.6

PS > Install-PSresource -Repository 'PSGallery' -TrustRepository -Scope 'CurrentUser' -Name 'Az.Accounts' -Version '99.98.97'

Install-PSResource: Package(s) 'Az.Accounts' could not be installed from repository 'PSGallery'.

PS >

It'd be great is PSResourceGet to output the actual reason for why Az.Accounts v99.98.97 could not be installed: That this version was not found in the given repository.

Find-PSResource returns this information, Save-PSResource and Install-PSResource should too.

PS > Find-PSResource -Repository 'PSGallery' -Name 'Az.Accounts' -Version '99.98.97'

Find-PSResource: Package with name 'Az.Accounts', version '99.98.97' could not be found in repository 'PSGallery'.

PS >

Proposed technical implementation details (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants