-
Notifications
You must be signed in to change notification settings - Fork 20
EnvExtension
for in-code configuration
#58
Comments
But now I'm not very clear about the type of this extension. Shall we expose a full |
To clarify, do you mean an environment extension that is is used when elaborating the lakefile or an extension that is used when elaborating source files in the package? If you mean the later, this would require some form import or plugin to augment the environment as lake doesn't currently have any direct control over source file elaboration. |
Oh I made a mistake on how lake works. I mean the source file. So we may have to hack into leanc for this to work. |
Fyi, I closed this as it was born from a confusion about how Lake works and that confusion has been cleared up. |
This was a bit of #xy, but the original issue is still unsolved. Should we add another issue for "how to tell lake about dependencies like files read by |
@gebner Sure. A clear issue on matter explain what is desired would be good. It wasn't even clear to me that was primary proposition here. (I see that is used sort of as a motivating example, but the proposed feature was very different.) |
Done. leanprover/lean4#2762 |
How about adding an
EnvExtension
to lake so that we can add to package configuration directly in code withCoreM
?The original thought is to trace external files in
include_str
, and it comes to a more generalized pattern:include_str
can specify the external file to trace with this extension.The text was updated successfully, but these errors were encountered: