Skip to content

Commit 98b8346

Browse files
committed
🐛 Exclude PSDependOptions from parsing
1 parent 3feccb7 commit 98b8346

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ModuleFast.psm1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,15 @@ function ConvertFrom-PSDepend {
10611061
)
10621062

10631063
$initialSpec = [ordered]@{}
1064+
1065+
if ($PSDependManifest.ContainsKey('PSDependOptions')) {
1066+
$options = $PSDependManifest['PSDependOptions']
1067+
if ($options.DependencyType) {
1068+
throw [NotSupportedException]"PSDepend Parse: Top-Level DependencyType in PSDependOptions is not currently supported."
1069+
}
1070+
$PSDependManifest.Remove('PSDependOptions')
1071+
}
1072+
10641073
foreach ($key in $PSDependManifest.Keys) {
10651074
$value = $PSDependManifest[$key]
10661075

0 commit comments

Comments
 (0)