You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newArgumentException($"Package '{pkgName}' could not be installed: ExternalModuleDependencies should only contain module names, not other metadata. Invalid entry: '{dependencyName}'"),
1642
-
"ExternalModuleDependencyInvalidEntry",
1643
-
ErrorCategory.ReadError,
1644
-
_cmdletPassedIn);
1639
+
stringdependencyName=depasstring;
1640
+
if(dependencyName.Contains("="))
1641
+
{
1642
+
error=newErrorRecord(
1643
+
newArgumentException($"Package '{pkgName}' could not be installed: ExternalModuleDependencies should only contain module names, not other metadata. Invalid entry: '{dependencyName}'"),
Copy file name to clipboardExpand all lines: test/SavePSResourceTests/SavePSResourceV2.Tests.ps1
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -214,4 +214,20 @@ Describe 'Test HTTP Save-PSResource for V2 Server Protocol' -tags 'CI' {
214
214
$err.Count| Should -BeGreaterThan 0
215
215
$err[0].FullyQualifiedErrorId | Should -BeExactly 'ErrorFilteringNamesForUnsupportedWildcards,Microsoft.PowerShell.PSResourceGet.Cmdlets.SavePSResource'
216
216
}
217
+
218
+
It "Save resource and dependency, while skipping dependency that is listed as external module dependency" {
0 commit comments