hare

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

commit 4fc141eaaa1ea5f23a5032c9aa59cc1c53e33aa2
parent 1a118d9041159f61f161d94c6860cca00d9b05c1
Author: Byron Torres <b@torresjrjr.com>
Date:   Tue, 26 Apr 2022 03:22:32 +0100

haredoc: -Fhtml: fix relative submodule lookup

The list for modules/submodules was created by scanning the
subdirectories of the current working directory, whatever it was.
It now properly performs a lookup using HAREPATH.

Signed-off-by: Byron Torres <b@torresjrjr.com>

Diffstat:
Mcmd/haredoc/html.ha | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/cmd/haredoc/html.ha b/cmd/haredoc/html.ha @@ -116,9 +116,8 @@ fn emit_html(ctx: *context) (void | error) = { if (dir == "vendor") continue; if (dir == "scripts") continue; - let path = path::join(identpath, dir); - defer free(path); - if (module::scan(ctx.mctx, path) is module::error) { + let submod = [identpath, dir]: ast::ident; + if (module::lookup(ctx.mctx, submod) is module::error) { continue; };