trustee-guest-components/0010-Fedora-use-clap-4.2.7.patch
Uri Lublin f5a12748a0 Initial commit on c10s
Added gating.yaml

Resolves: RHEL-73770
2025-01-21 15:01:46 +02:00

38 lines
1.0 KiB
Diff

From 266776b3c7bdc4179faa7739bb5cd92dad150380 Mon Sep 17 00:00:00 2001
From: Uri Lublin <uril@redhat.com>
Date: Mon, 28 Oct 2024 21:15:37 +0200
Subject: [PATCH] Fedora: use clap "^4.2.7"
Content-type: text/plain
Upstream commits 2d8dcd3 and 53ddd63 changed version from "4" to
"~4.2.7" such that it can be built with rust 1.69.
Fedora currently has rust-1.83 and clap 4.5.23.
With the "~4.2.7" build fails with error:
(crate(clap/default) >= 4.2.7 with crate(clap/default) < 4.3.0~) is needed
This commit relaxes the clap version requirement to be ">=4.2.7,<5"
Suggested-by: Fabio Valentini <decathorpe@gmail.com>
Signed-off-by: Uri Lublin <uril@redhat.com>
---
Cargo.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Cargo.toml b/Cargo.toml
index 08dca30..9f5e48c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ base64-serde = "0.7"
bincode = "1.3.3"
cfg-if = "1.0.0"
chrono = "0.4.26"
-clap = "~4.2.7"
+clap = "^4.2.7"
config = "0.14.1"
const_format = "0.2.33"
env_logger = "0.11.5"
--
2.47.1