hare

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

commit 2b3d504cd55d3d0376fe3af1b46291fd5e5c5c0a
parent 03dfff2f8ead1006cf5c81cdff7ebfd820efc0ea
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 11 Mar 2021 12:26:52 -0500

hare::module: fix basedir for file input

Diffstat:
Mhare/module/scan.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hare/module/scan.ha b/hare/module/scan.ha @@ -39,7 +39,7 @@ export fn scan(ctx: *context, path: str) (version | error) = { hash::write(sha, in.hash); return version { hash = hash::finish(sha), - basedir = strings::dup(path::dirname(path)), + basedir = path::dirname(fs::resolve(ctx.fs, path)), depends = deps, inputs = inputs, };