From f24e0ce22a62ec3038ef71d4b74ed449934f7eca Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Sun, 10 May 2026 12:56:09 -0500 Subject: [PATCH] fix (lact): use VERGEN_GIT_SHA=454a6e2 (#12162) * fix (lact): use VERGEN_GIT_SHA=454a6e2 Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> * define commit and shortcommit Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> * this Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> * add commit and version bumper update.rhai Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --------- Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/system/lact/lact.spec | 7 +++++-- anda/system/lact/update.rhai | 8 +++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/anda/system/lact/lact.spec b/anda/system/lact/lact.spec index fb144a5039..4b68334291 100644 --- a/anda/system/lact/lact.spec +++ b/anda/system/lact/lact.spec @@ -1,8 +1,11 @@ +%global commit 454a6e24af830a1f434385fc3faebec19c0cbefa +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + %define appid io.github.ilya_zlobintsev.LACT Name: lact Version: 0.9.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Linux GPU Configuration And Monitoring Tool URL: https://github.com/ilya-zlobintsev/LACT Source0: %{url}/archive/refs/tags/v%{version}.tar.gz @@ -40,7 +43,7 @@ Packager: Owen Zimmerman %cargo_prep_online %build -%cargo_build +VERGEN_GIT_SHA=%{shortcommit} %cargo_build %install install -Dm755 target/rpm/lact %{buildroot}%{_bindir}/lact diff --git a/anda/system/lact/update.rhai b/anda/system/lact/update.rhai index 70099ad446..d92ec1933b 100644 --- a/anda/system/lact/update.rhai +++ b/anda/system/lact/update.rhai @@ -1 +1,7 @@ -rpm.version(gh("ilya-zlobintsev/LACT")); +let r = get("https://api.github.com/repos/ilya-zlobintsev/LACT/tags").json_arr(); + +rpm.version(r[0].name); + +if rpm.changed() { + rpm.global("commit", r[0].commit.sha); +}