PowerShell/UnixCompleters

-AcceptLicense required to install from PSGallery

theJasonHelmick opened this issue · 0 comments

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

PowerShell 7.2.6
PSReadLine 2.2.6.

Using Find-Module to locate and install Microsoft.PowerShell.UnixTabCompletion - the module requires -AcceptLicense to complete install.

Expected behavior

Module is installed.

Actual behavior

find-module microsoft.powershell.unixtab* | install-module - generates an error (below)

Error details

find-module microsoft.powershell.unixtab* | install-module

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
 'https://www.powershellgallery.com/api/v2'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): a
Install-Package: License Acceptance is required for module 'Microsoft.PowerShell.UnixTabCompletion'. Please specify
'-AcceptLicense' to perform this operation.

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Darwin 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:23 PDT 2022; root:xnu…
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

PowerShell 7.2.6

Visuals

Screen Shot 2022-08-24 at 8 47 26 AM