mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user