Zulip Chat Archive

Stream: lean4

Topic: building many independent files with lake


Jireh Loreaux (Jan 20 2025 at 21:35):

Let's suppose I have a bunch of files Foo/Bar1.lean, Foo/Bar2.lean, etc., and I would like lake to build these with the following caveat: I don't want to simply create a new file of the form:

import Foo.Bar1
import Foo.Bar2
...

and have lake build that (which I understand I would do with @[default target] lean_lib «Foo»). Instead, I would like lake to build all of these files independently, but I would prefer the user to only type lake build. Can I accomplish this?

Jireh Loreaux (Jan 20 2025 at 21:37):

I would go look in the reference manual, but that section isn't ready just yet.

Damiano Testa (Jan 20 2025 at 22:05):

According to this message, globbing appears to be the answer, but I have never used it.

Jireh Loreaux (Jan 21 2025 at 04:51):

Thanks! Undocumented globs to the rescue!


Last updated: May 02 2025 at 03:31 UTC