PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
495 stars 93 forks source link

Misleading error message when AcceptLicense is not used #1729

Open ThomasNieto opened 1 month ago

ThomasNieto commented 1 month ago

Prerequisites

Steps to reproduce

PS /home> Install-PSResource Microsoft.PowerShell.UnixTabCompletion

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its Trusted value by
 running the Set-PSResourceRepository cmdlet. Are you sure you want to install the PSResource from 'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): y
Install-PSResource: Package 'Microsoft.PowerShell.UnixTabCompletion' could not be installed: License.txt not found. License.txt must be provided when user license acceptance is required.

Expected behavior

Write error that license wasn't accepted

Actual behavior

Error says license.txt not found which is incorrect.

Error details

No response

Environment data

1.1-preview2

Visuals

No response

SydneyhSmith commented 3 weeks ago

Thanks @ThomasNieto