PowerShellOrg / Plaster

Plaster is a template-based file and project generator written in PowerShell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Is the version 1.1.0 signed ?

LaurentDardenne opened this issue · comments

update-module plaster
PackageManagement\Install-Package : A Microsoft-signed module named 'Plaster' with version '1.0.1' that was previously
installed conflicts with the new module 'Plaster' from publisher 'System.Object[]' with version '1.1.0'. Installing
the new module may result in system instability. If you still want to install or update, use -SkipPublisherCheck
parameter.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.5.0.0\PSModule.psm1:2161 char:20
+ ...           $sid = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
   Exception
    + FullyQualifiedErrorId : PublishersMismatch,Validate-ModuleAuthenticodeSignature,Microsoft.PowerShell.PackageMana
   gement.Cmdlets.InstallPackage

image

The file 'Plaster.cat' is missing into this directory (v 1.1.0).

Yep, I screwed that up, sorry about that! I'll ship 1.1.1 a little later today.

I can not install the version 1.1.2 on Windows Seven Sp1 Fr, PS V5.1.14409.1012.

install-module plaster -verbose -Repository psgallery
VERBOSE: The specified assembly 'C:\Program Files\PackageManagement\ProviderAssemblies\nuget-anycpu.exe' in
\ProviderAssemblies, should be installed in ProviderAssemblies\ProviderName\Version. Either delete the provider
assembly from \ProviderAssemblies, or create \ProviderAssemblies\ProvidernName\Version, and then move the assembly
there.
VERBOSE: Acquiring providers for assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.1.6.0\fullclr\Microsoft.PackageManagement.MsuProvider.dll
VERBOSE: Acquiring providers for assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.1.6.0\fullclr\Microsoft.PackageManagement.MetaProvider.PowerShell.d
ll
VERBOSE: Acquiring providers for assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.1.6.0\fullclr\Microsoft.PackageManagement.NuGetProvider.dll
VERBOSE: Acquiring providers for assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.1.6.0\fullclr\Microsoft.PackageManagement.CoreProviders.dll
VERBOSE: Acquiring providers for assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.1.6.0\fullclr\Microsoft.PackageManagement.ArchiverProviders.dll
VERBOSE: Acquiring providers for assembly: C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.1.6.0\fullclr\Microsoft.PackageManagement.MsiProvider.dll
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2/'; IsTrusted =
'True'; IsRegistered = 'True'.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Using the specified source names : 'psgallery'.
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='plaster'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'plaster'.
VERBOSE: Performing the operation "Install-Module" on target "Version '1.1.2' of module 'Plaster'".
VERBOSE: The installation scope is specified to be 'AllUsers'.
VERBOSE: The specified module will be installed in 'C:\Program Files\WindowsPowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'Plaster' with version '1.1.2' from the repository
'https://www.powershellgallery.com/api/v2/'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Plaster'' for ''.
VERBOSE: InstallPackage' - name='Plaster', version='1.1.2',destination='C:\Users\Laurent\AppData\Local\Temp\1271125197'
VERBOSE: DownloadPackage' - name='Plaster',
version='1.1.2',destination='C:\Users\Laurent\AppData\Local\Temp\1271125197\Plaster\Plaster.nupkg',
uri='https://www.powershellgallery.com/api/v2/package/Plaster/1.1.2'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Plaster/1.1.2'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Plaster/1.1.2'.
VERBOSE: Completed downloading 'Plaster'.
VERBOSE: Hash for package 'Plaster' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='Plaster',
version='1.1.2',destination='C:\Users\Laurent\AppData\Local\Temp\1271125197'
VERBOSE: Found the catalog file 'Plaster.cat' in the module 'Plaster' contents.
VERBOSE: Valid authenticode signature found in the catalog file 'Plaster.cat' for the module 'Plaster'.
VERBOSE: Validating the 'Plaster' module files for catalog signing using the catalog file 'Plaster.cat'.
PackageManagement\Install-Package : The module 'Plaster' cannot be installed because the catalog signature in
'Plaster.cat' does not match the hash generated from the module.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.5.0.0\PSModule.psm1:1877 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
   Exception
    + FullyQualifiedErrorId : InvalidCatalogSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.Packag
   eManagement.Cmdlets.InstallPackage

Getting the following error:

The module 'Plaster' cannot be installed because the catalog signature in 'Plaster.cat' does not match the hash generated from the module.

Sorry for the trouble! Hit a bug in the PowerShellGet module that prevented me from publishing correctly. Version 1.1.3 is up on the Gallery now, should work for you!