Zulip Chat Archive
Stream: batteries
Topic: Batteries releases and Batteries template for lake
Shreyas Srinivas (Oct 15 2024 at 12:27):
I started a batteries only project and had a lot of build errors. Then I pinned the toolchain to v4.13.0-rc3 and found out that there was no rc3 for batteries
Shreyas Srinivas (Oct 15 2024 at 12:28):
How do I get batteries to build and (RFC) could we have a project template for batteries with nice defaults?
Shreyas Srinivas (Oct 15 2024 at 12:29):
Currently I am falling back to 4.12.0
Ruben Van de Velde (Oct 15 2024 at 12:29):
Batteries' main branch is on rc3, so you can use that
Shreyas Srinivas (Oct 15 2024 at 12:30):
That was my first attempt. It failed
Shreyas Srinivas (Oct 15 2024 at 12:30):
Got masses of build errors
Ruben Van de Velde (Oct 15 2024 at 12:30):
How?
Ruben Van de Velde (Oct 15 2024 at 12:30):
With what in your lean-toolchain?
Shreyas Srinivas (Oct 15 2024 at 12:30):
leanprover/lean4:v4.13.0-rc3
Ruben Van de Velde (Oct 15 2024 at 12:31):
And what commit of batteries?
Shreyas Srinivas (Oct 15 2024 at 12:32):
The lakefile.toml was:
name = "<redacted>"
defaultTargets = ["<redacted>"]
[[require]]
name = "batteries"
git = "https://github.com/leanprover-community/batteries"
rev = "main"
[[lean_lib]]
name = "<redacted>"
[[lean_exe]]
name = "<redacted>"
root = "Main"
Shreyas Srinivas (Oct 15 2024 at 12:32):
except those <redacted>
bits of course
Shreyas Srinivas (Oct 15 2024 at 12:38):
Update : got it working by clearing out lake-manifest and ./.lake and re-running everything again
Shreyas Srinivas (Oct 15 2024 at 12:38):
But it seems I can't pin Batteries to 4.13.0-rc3 because there is no tag
Ruben Van de Velde (Oct 15 2024 at 12:49):
Probably just forgotten, cc @Kim Morrison
Ruben Van de Velde (Oct 15 2024 at 12:50):
You can use a commit hash like daf1ed9
instead of main
in your lakefile.toml
Shreyas Srinivas (Oct 15 2024 at 12:53):
Sounds good. In the long run, it would be nice if we could lake add Batteries
and get the correct revision automatically added
Eric Wieser (Oct 15 2024 at 13:26):
Ruben Van de Velde said:
You can use a commit hash like
daf1ed9
instead ofmain
in yourlakefile.toml
Isn't this what lake-manifest.json
is for?
Mario Carneiro (Oct 15 2024 at 23:29):
lake-manifest.json
is for saying what the current version of the project is building with, the rev =
in lakefile.toml
is for saying what you want to happen when you next run lake update
.
Mario Carneiro (Oct 15 2024 at 23:30):
using a hash or tag there is opting out of automatic updates
Kim Morrison (Oct 15 2024 at 23:33):
I've now pushed a v4.13.0-rc3
tag. (François did the bump while I was on holiday.)
Last updated: May 02 2025 at 03:31 UTC