hare

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

commit 1aa7a3246a6cb0acb36928f65bcaa1a800c9f291
parent 83ca7fe224c6ffc199ef0c1753abe34d02a76a3b
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 14 Dec 2021 09:02:38 +0100

hare::module: add vendor/ to default HAREPATH

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

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

diff --git a/hare/module/context.ha b/hare/module/context.ha @@ -36,6 +36,7 @@ export fn context_init(tags: []tag, defs: []str, harepath: str) context = { yield alloc([ strings::dup(harepath), dirs::data("hare"), + strings::dup("vendor"), strings::dup("."), ]); case let s: str => @@ -44,6 +45,7 @@ export fn context_init(tags: []tag, defs: []str, harepath: str) context = { for (let i = 0z; i < len(sl); i += 1) { append(path, strings::dup(sl[i])); }; + append(path, strings::dup("vendor")); append(path, strings::dup(".")); free(sl); yield path;