From 326f40bfb5befcfeaccba710e906677e9beb2b70 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Fri, 31 Jan 2025 12:06:57 +0530 Subject: [PATCH] fix(copr): add prep step to remove clippy attribute before build --- package/copr/lune.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/copr/lune.spec b/package/copr/lune.spec index 3eaef9d..e282dfc 100644 --- a/package/copr/lune.spec +++ b/package/copr/lune.spec @@ -35,6 +35,8 @@ Requires: glibc %prep %setup -q -n lune-%{version} +# Removes clippy lint attribute which is falsely flagged as a shebang in build +sed -i '/#![allow(clippy::cargo_common_metadata)]/d' lune-%{version}/crates/lune/src/main.rs %build