mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Add schema for cgmanifest.json (#18036)
* Update cgmanifest.json * Update findMissingNotices.ps1
This commit is contained in:
1 parent
1c13c7084b
commit
c17fda415a
2 files changed
+7
-2
No files matched your search
@@ -1430,5 +1430,6 @@
|
||||
},
|
||||
"DevelopmentDependency": false
|
||||
}
|
||||
]
|
||||
],
|
||||
"$schema": "https://json.schemastore.org/component-detection-manifest.json"
|
||||
}
|
||||
@@ -275,7 +275,11 @@ foreach ($runtime in "win7-x64", "linux-x64", "osx-x64", "alpine-x64", "win-arm"
|
||||
$newRegistrations = $registrations.Keys | Sort-Object | ForEach-Object { $registrations[$_] }
|
||||
|
||||
$count = $newRegistrations.Count
|
||||
$newJson = @{Registrations = $newRegistrations } | ConvertTo-Json -depth 99
|
||||
$newJson = @{
|
||||
Registrations = $newRegistrations
|
||||
'$schema' = "https://json.schemastore.org/component-detection-manifest.json"
|
||||
} | ConvertTo-Json -depth 99
|
||||
|
||||
if ($Fix -and $registrationChanged) {
|
||||
$newJson | Set-Content $cgManifestPath
|
||||
Set-GWVariable -Name CGMANIFEST_PATH -Value $cgManifestPath
|
||||
|
||||
Reference in new issue
Block a user