openllb / hlb

A developer-first language to build and test any software efficiently
https://openllb.github.io/hlb/
Apache License 2.0
108 stars 12 forks source link

Set implicit local directory path to "" #334

Closed aaronlehmann closed 2 years ago

aaronlehmann commented 2 years ago

Previously, this was being set to ".", and would wrongly strip the first "." from a path that begins with "." in ModuleDir. Setting it to the empty string seems more correct: nothing will be stripped. The only other use of this "root" is in filepath.Join calls inside localDirectory methods, which will also do the right thing with an empty string.

Fixes #332