hare

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

commit 3cd784e00b3c8829240b95d7049376708bb7d1d6
parent dd933fcd509a0771b277ed77467ff64c1603c13f
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  8 Mar 2021 17:27:03 -0500

scan: resolve paths

Diffstat:
Mhare/module/scan.ha | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hare/module/scan.ha b/hare/module/scan.ha @@ -29,7 +29,7 @@ export fn scan(ctx: *context, path: path::path) (version | error) = { }; let st = fs::stat(ctx.fs, path)?; let in = input { - path = path, + path = fs::resolve(ctx.fs, path), stat = st, ft = ft, hash = scan_file(ctx, path, &deps)?, @@ -80,7 +80,7 @@ fn scan_directory( let p = path::join(path, ent.name); let st = fs::stat(ctx.fs, p)?; let in = input { - path = p, + path = fs::resolve(ctx.fs, p), stat = st, ft = type_for_ext(ent.name) as filetype, hash = scan_file(ctx, p, &ver.depends)?,