Zulip Chat Archive
Stream: lean4
Topic: lake failing with git error
Scott Morrison (Nov 18 2021 at 01:36):
In https://github.com/leanprover-community/mathlib3-port, the first run of lake build
gives various output, amongst which there is error: git exited with code 128
.
Subsequent runs just fail with this error:
$ lake build
leanbin: trying to update ./lean_packages/leanbin to revision master
mathlib: trying to update ./lean_packages/mathlib to revision 64f9c43eb9a75fb4c5989ac711623d06e9696e60
error: git exited with code 128
error: build failed
Scott Morrison (Nov 18 2021 at 01:36):
I'd like to know the git
command that lake
is running in order to diagnose the problem.
Scott Morrison (Nov 18 2021 at 01:37):
@Mac or otherwise, is there a way to uncover this easily?
Scott Morrison (Nov 18 2021 at 03:00):
In the meantime, the problem seems to have gone away. The only thing I seem to have changed is to rename the repository, and the dependent repository, so they don't have -
in the name. If that rings any bells, perhaps this is worth investigating. Otherwise, it's just a generic request for better error reporting from lake when git fails!
Mac (Nov 18 2021 at 03:38):
@Scott Morrison feel free to post this issue on Lake (i.e., logging for the executed Git command). Sorry that I haven't be speedily addressing your comments this week. I have been otherwise occupied.
Scott Morrison (Nov 18 2021 at 04:11):
No worries! I'll see if I can make a repro later.
Alexander Bentkamp (Apr 29 2022 at 03:37):
I just had the same issue. I was able to work around it by manually cloning the dependencies into lean_packages
.
Last updated: Dec 20 2023 at 11:08 UTC