hare

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

commit e9f718c9c0bc02472489810302ec5b6cc86cc82f
parent 99249f26d4b9bfd77320ee8d198760e1344f1c11
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  6 Dec 2021 10:54:35 +0000

hare::module: re-introduce README hack

This is necessary to fix docs.harelang.org again. Will remove this again
after refactoring haredoc.

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

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

diff --git a/hare/module/scan.ha b/hare/module/scan.ha @@ -73,7 +73,10 @@ export fn scan(ctx: *context, path: str) (version | error) = { }; scan_directory(ctx, &ver, &sha, path, iter)?; - if (len(ver.inputs) == 0) { + let readme = path::join(path, "README"); + defer free(readme); + if (len(ver.inputs) == 0 && !fs::exists(ctx.fs, readme)) { + // TODO: HACK: README is a workaround for haredoc issues return module_not_found; };