hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 2a222f6ccad44fa1158a57b170b82193eb572d04
parent 84799dba8f7ca2a644a582df898647ee20ad6990
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat,  8 Jan 2022 14:49:15 +0100

cmd/hare/schedule.ha: use path::buffer

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mcmd/hare/schedule.ha | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cmd/hare/schedule.ha b/cmd/hare/schedule.ha @@ -213,10 +213,10 @@ fn sched_hare_object( let td = fmt::asprintf("{}.td", version); defer free(td); - let path = plan.context.cache; - for (let i = 0z; i < len(namespace); i += 1) { - path = path::join(path, namespace[i]); - }; + let buf = path::init(); + path::set(&buf, plan.context.cache)!; + path::add(&buf, namespace...)!; + const path = path::string(&buf); match (os::mkdirs(path)) { case void => void; case let err: fs::error =>