fix: handle null Cargo metadata resolution
rping CI rping passed CI.
Archive/rping/pipeline/head This commit looks good Details

This commit is contained in:
Dandaedre 2026-10-04 04:19:51 +02:00
parent b5a8be0049
commit 9a2d0c036a
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -226,7 +226,8 @@ import json
import sys
metadata = json.load(sys.stdin)
root = metadata.get("resolve", {}).get("root")
resolve = metadata.get("resolve")
root = resolve.get("root") if isinstance(resolve, dict) else None
packages = metadata["packages"]
if root is not None:
packages = [package for package in packages if package["id"] == root]