fix(zig-master-bootstrap): Move mirror fetch script to bootstrap dir so commit messages work (#5960) (#5961)

(cherry picked from commit c810c471e0)

Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Raboneko
2025-07-27 09:45:14 -07:00
committed by GitHub
parent 5c037f9605
commit edc3d34f94
3 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -5,9 +5,9 @@ rpm.global("ver", v);
if rpm.changed() {
rpm.release();
// Update the Zig version in the script
sh(`sed -i 's/version=.*/version=${v}/' anda/langs/zig/choose-mirror.sh`, #{});
sh(`sed -i 's/version=.*/version=${v}/' anda/langs/zig/bootstrap/choose-mirror.sh`, #{});
// This could be done with the rhai-rand Crate but Anda does not use this currently
let mirror = sh("anda/langs/zig/choose-mirror.sh", #{"stdout": "piped"}).ctx.stdout;
let mirror = sh("anda/langs/zig/bootstrap/choose-mirror.sh", #{"stdout": "piped"}).ctx.stdout;
mirror.pop();
rpm.global("mirror_url", mirror);
}
+1 -1
View File
@@ -3,7 +3,7 @@ import "andax/bump_extras.rhai" as bump;
rpm.version(bump::madoguchi("zig-master-bootstrap", labels.branch));
if rpm.changed() {
// This could be done with the rhai-rand Crate but Anda does not use this currently
let mirror = sh("anda/langs/zig/choose-mirror.sh", #{"stdout": "piped"}).ctx.stdout;
let mirror = sh("anda/langs/zig/bootstrap/choose-mirror.sh", #{"stdout": "piped"}).ctx.stdout;
mirror.pop();
rpm.global("mirror_url", mirror);
}