Zulip Chat Archive
Stream: lean4
Topic: Absolute path in lake require
Patrick Massot (Feb 09 2024 at 18:19):
What is the intended syntax in require foo from path
when path
wants to start with the root directory. I see that from "/"/"home"/...
works but surely this isn’t the intended syntax?
Mario Carneiro (Feb 09 2024 at 18:21):
Does "/home/..."
not work?
Mario Carneiro (Feb 09 2024 at 18:23):
The point of using the /
operator on FilePath is to make the separators OS independent (although I'm not sure how necessary this actually is in modern times since all supported OSs understand /
as a directory separator), but absolute paths are by nature OS dependent so there isn't much need for it
Patrick Massot (Feb 09 2024 at 18:23):
Oh, it works actually. I was misled by the example in the lake README.
Last updated: May 02 2025 at 03:31 UTC