iainbrighton / PScribo

PowerShell documentation framework
MIT License
232 stars 35 forks source link

Install-Module Pscribo error. #30

Closed PeterMTaylor closed 7 years ago

PeterMTaylor commented 7 years ago

Hi Iain, Just attempting to grab the latest verison from PSGalley for PScribo via AppVeyor and encountered an error as follows:- PackageManagement\Install-Package : The version '0.7.12.47' of the module 'PScribo' being installed is not catalog signed. Ensure that the version '0.7.12.47' of the module 'PScribo' has the catalog file 'PScribo.cat' and signed with the same publisher 'CN=DigiCert Assured ID Root CA, OU=www.digicert.com, O=DigiCert Inc, C=US' as the previously-installed module '0.7.12.47' with version '0.7.12.47' under the directory 'C:\Program Files\WindowsPowerShell\Modules\PScribo\0.7.12.47'. If you still want to install or update, use -SkipPublisherCheck parameter. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1661 char:21

Can you confirm if the bundle work in your pipeline may resolve this or would I need to allow -SkipPublisherCheck in the short term til a solution is on it's way?

Kind regards, Peter.

iainbrighton commented 7 years ago

Hi @PeterMTaylor,

I've not seen that before. It looks like it's a Server 2016 cumulative update issue? Hopefully AppVeyor will update their images soon..

Here's it running on the latest Windows 10 build:

[7] C:\..\Dropbox\PowerShell> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.693
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.693
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

[8] C:\...\PowerShell\Modules> install-module -Name PScribo -Scope CurrentUser -Verbose
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and packageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PScribo'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'PScribo'.
VERBOSE: Performing the operation "Install-Module" on target "Version '0.7.12.47' of module 'PScribo'".

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 'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): y
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\Iain\OneDrive\Documents\WindowsPowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PScribo' with version '0.7.12.47' from the repository 'https://www.powershellgallery.com/api/v2/'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PScribo'' for ''.
VERBOSE: InstallPackage' - name='PScribo', version='0.7.12.47',destination='C:\Users\Iain\AppData\Local\Temp\791953205'
VERBOSE: DownloadPackage' - name='PScribo', version='0.7.12.47',destination='C:\Users\Iain\AppData\Local\Temp\791953205\PScribo\PScribo.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PScribo/0.7.12.47'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PScribo/0.7.12.47'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PScribo/0.7.12.47'.
VERBOSE: Completed downloading 'PScribo'.
VERBOSE: InstallPackageLocal' - name='PScribo', version='0.7.12.47',destination='C:\Users\Iain\AppData\Local\Temp\791953205'
VERBOSE: Catalog file 'PScribo.cat' is not found in the contents of the module 'PScribo' being installed.
VERBOSE: Valid authenticode signature found in the file 'PScribo.psd1' for the module 'PScribo'.
VERBOSE: Module 'PScribo' was installed successfully to path 'C:\Users\Iain\OneDrive\Documents\WindowsPowerShell\Modules\PScribo\0.7.12.47'.
PeterMTaylor commented 7 years ago

Hi @iainbrighton, just to update you that I have successfully run a test using the new Appveyor image which is image: WMF 5 to image: Visual Studio 2017. thanks. closing this issue.

PeterMTaylor commented 7 years ago

---------------------------------

Install Pscribo

---------------------------------

Write-Host 'Installing PScribo' Install-Module -Name PScribo Get-Module -ListAvailable -Name PScribo | Format-List Name,Version,ModuleBase