-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Blockedblocked on something external to this repoblocked on something external to this repoResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Milestone
Description
It looks like the behavior of Test-ModuleManifest has been changed. It checks all files under one folder. It might be a good feature addition if came with a new switch. This behavior should not be ON by default. Please see the errors below. It complains about psget.resources.psd1 or format.ps1xml, or even checkin dll is not valid manifest. These errors are unexpected.
Steps to reproduce
- go to PS /opt/microsoft/powershell/6.0.0-alpha.11/Modules/PowerShellGet>
- Test-ModuleManifest -Path ./PowerShellGet.psd1
or try PSReadline.psd1
Expected behavior
No error
Actual behavior
PS /opt/microsoft/powershell/6.0.0-alpha.11/Modules/PowerShellGet> Test-ModuleManifest -Path ./PowerShellGet.psd1
Test-ModuleManifest : The specified FileList entry 'PSModule.psm1' in the module manifest
'/opt/microsoft/powershell/6.0.0-alpha.11/Modules/PowerShellGet/PowerShellGet.psd1' is invalid. Try
again after updating this entry with valid values.
At line:1 char:1
+ Test-ModuleManifest -Path ./PowerShellGet.psd1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (./PowerShellGet.psd1:String) [Test-ModuleManifest], Direc
toryNotFoundException
+ FullyQualifiedErrorId : Modules_InvalidFilePathinModuleManifest,Microsoft.PowerShell.Commands.Test
ModuleManifestCommand
Test-ModuleManifest : The specified FileList entry 'PSGet.Format.ps1xml' in the module manifest
'/opt/microsoft/powershell/6.0.0-alpha.11/Modules/PowerShellGet/PowerShellGet.psd1' is invalid. Try
again after updating this entry with valid values.
At line:1 char:1
+ Test-ModuleManifest -Path ./PowerShellGet.psd1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (./PowerShellGet.psd1:String) [Test-ModuleManifest], Direc
toryNotFoundException
+ FullyQualifiedErrorId : Modules_InvalidFilePathinModuleManifest,Microsoft.PowerShell.Commands.Test
ModuleManifestCommand
Test-ModuleManifest : The specified FileList entry 'PSGet.Resource.psd1' in the module manifest
'/opt/microsoft/powershell/6.0.0-alpha.11/Modules/PowerShellGet/PowerShellGet.psd1' is invalid. Try
again after updating this entry with valid values.
At line:1 char:1
+ Test-ModuleManifest -Path ./PowerShellGet.psd1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (./PowerShellGet.psd1:String) [Test-ModuleManifest], Direc
toryNotFoundException
+ FullyQualifiedErrorId : Modules_InvalidFilePathinModuleManifest,Microsoft.PowerShell.Commands.Test
ModuleManifestCommand
Environment data
Name Value
---- -----
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.11
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1 Metadata
Metadata
Assignees
Labels
Blockedblocked on something external to this repoblocked on something external to this repoResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues