Zulip Chat Archive
Stream: general
Topic: leanpkg breaks my mathlib
Kevin Buzzard (Jul 10 2018 at 09:36):
buzzard@bob:~/Lean/lean-projects/xena-UROP-2018$ more leanpkg.toml [package] name = "xena-UROP-2018" version = "0.1" lean_version = "3.4.1" path = "src" [dependencies] mathlib = {git = "https://github.com/leanprover/mathlib", rev = "c8ad5cfd793153bff38c49c54940f04d86cb7616"} buzzard@bob:~/Lean/lean-projects/xena-UROP-2018$ # commit number is mathlib HEAD buzzard@bob:~/Lean/lean-projects/xena-UROP-2018$ leanpkg upgrade mathlib: trying to update _target/deps/mathlib to revision c8ad5cfd793153bff38c49c54940f04d86cb7616 > git checkout --detach c8ad5cfd793153bff38c49c54940f04d86cb7616 # in directory _target/deps/mathlib Previous HEAD position was a30b7c7... feat(data/string): fix string_lt, add repr for multiset, pnat HEAD is now at c8ad5cf... fix(computability/turing_machine): fix import configuring xena-UROP-2018 0.1 mathlib: trying to update _target/deps/mathlib to revision a30b7c773db17cf7d1b551ba0f24645079296628 > git checkout --detach a30b7c773db17cf7d1b551ba0f24645079296628 # in directory _target/deps/mathlib Previous HEAD position was c8ad5cf... fix(computability/turing_machine): fix import HEAD is now at a30b7c7... feat(data/string): fix string_lt, add repr for multiset, pnat buzzard@bob:~/Lean/lean-projects/xena-UROP-2018$ more leanpkg.toml [package] name = "xena-UROP-2018" version = "0.1" lean_version = "3.4.1" path = "src" [dependencies] mathlib = {git = "https://github.com/leanprover/mathlib", rev = "a30b7c773db17cf7d1b551ba0f24645079296628"} buzzard@bob:~/Lean/lean-projects/xena-UROP-2018$ # mathlib now a commit from 19 days ago which doesn't compile buzzard@bob:~/Lean/lean-projects/xena-UROP-2018$
Kevin Buzzard (Jul 10 2018 at 09:37):
My leanpkg.toml
for a Xena project repo on GH seems to want to use commit a30b7c773db17cf7d1b551ba0f24645079296628
of mathlib, which does not compile. I can edit leanpkg.toml
manually and point it at the mathlib revision I want, but leanpkg upgrade
then rolls it back. What am I doing wrong?
Kevin Buzzard (Jul 10 2018 at 09:38):
$ lean --version Lean (version 3.4.1, commit 17fe3decaf8a, Release)
Chris Hughes (Jul 10 2018 at 09:43):
I tried cloning and typing leanpkg upgrade
and leanpkg
changed the toml to the latest update.
Chris Hughes (Jul 10 2018 at 09:44):
I've pushed, so it might work now
Kevin Buzzard (Jul 10 2018 at 09:46):
This does not fix it for me.
Kevin Buzzard (Jul 10 2018 at 09:47):
I just cloned and ran leanpkg upgrade
Johan Commelin (Jul 10 2018 at 09:47):
"Have you tried turning bob
off and on again"
Kevin Buzzard (Jul 10 2018 at 09:47):
are you serious?
Chris Hughes (Jul 10 2018 at 09:48):
Who's bob?
Johan Commelin (Jul 10 2018 at 09:48):
His computer
Kevin Buzzard (Jul 10 2018 at 09:48):
I saw this behaviour on Luca's mac yesterday
Kevin Buzzard (Jul 10 2018 at 09:48):
and I'm now experiencing it myself on linux
Johan Commelin (Jul 10 2018 at 09:49):
I guess Chris is running Windows...?
Chris Hughes (Jul 10 2018 at 09:49):
Correct.
Kevin Buzzard (Jul 10 2018 at 09:49):
I cloned and ran leanpkg upgrade
and I'm back to a30b7c7
Kevin Buzzard (Jul 10 2018 at 09:49):
which doesn't compile
Johan Commelin (Jul 10 2018 at 09:50):
Hmm, and you both have the same version of Lean, hence the same leanpkg, right?
Kevin Buzzard (Jul 10 2018 at 09:51):
I can't guarantee that we're using the same version of Lean.
Kevin Buzzard (Jul 10 2018 at 09:51):
I am using 3.4.1 stable and I think Chris might be using the 20/4 nightly
Chris Hughes (Jul 10 2018 at 09:51):
I'm using Lean (version 3.4.1, nightly-2018-04-20, commit f59c2f0ef59f, Release)
Kevin Buzzard (Jul 10 2018 at 09:51):
they differ by about one commit
Kevin Buzzard (Jul 10 2018 at 09:52):
$ lean --version Lean (version 3.4.1, commit 17fe3decaf8a, Release)
Kevin Buzzard (Jul 10 2018 at 09:55):
Aah!
Kevin Buzzard (Jul 10 2018 at 09:55):
Mathlib branch 3.4.1 which Mario didn't want to make -- he has clearly decided to get his own back by pointing it at the a30b7c7
commit and leaving it there!
Kevin Buzzard (Jul 10 2018 at 09:56):
@Mario Carneiro help! Can you change the 3.4.1
branch of mathlib to something which compiles?
Chris Hughes (Jul 10 2018 at 09:57):
So the issue is that you're version wants to use the 3.4.1
branch and my version wants to use master?
Kevin Buzzard (Jul 10 2018 at 09:57):
Maybe.
Kevin Buzzard (Jul 10 2018 at 09:58):
The underlying issue is that I want everyone (except people like you who know what they're doing) to be using the exact same version of Lean and mathlib.
Kevin Buzzard (Jul 10 2018 at 09:58):
Because that is the sane way to proceed, in my opinion.
Chris Hughes (Jul 10 2018 at 09:58):
Why are there two identical branches anyway?
Kevin Buzzard (Jul 10 2018 at 09:59):
Same answer.
Kevin Buzzard (Jul 10 2018 at 09:59):
I want to tell my users "download Lean 3.4.1 and mathlib 3.4.1" and I want the consequence of this to be that everyone downloads the same thing
Kevin Buzzard (Jul 10 2018 at 09:59):
Mario says "mathlib does not work like this, I will not release a 3.4.1"
Kevin Buzzard (Jul 10 2018 at 10:00):
The compromise was that he released a 3.4.1 branch and used to keep it up to date with mathlib HEAD but maybe he forgot to do this recently and unfortunately we've settled on a version of mathlib which doesn't compile.
Chris Hughes (Jul 10 2018 at 10:04):
That's not really necessary until master uses 3.4.2
is it?
Mario Carneiro (Jul 10 2018 at 10:05):
Actually I left 3.4.1
branch there because Leo pushed a commit on lean repo after that, so technically master
is back on nightlies
Kevin Buzzard (Jul 10 2018 at 10:05):
Chris -- currently when my users say "what version of Lean should I download"? I say "3.4.1 stable, here's the link" and when they say "what version of mathlib should I download" I say "don't worry about mathlib, let leanpkg do the magic for you".
Kevin Buzzard (Jul 10 2018 at 10:06):
and currently the magic it does is that it downloads a broken version
Mario Carneiro (Jul 10 2018 at 10:06):
It should be a working version though
Kevin Buzzard (Jul 10 2018 at 10:06):
It has a red X on the list of commits and I just failed to compile it.
Kenny Lau (Jul 10 2018 at 10:06):
just pick a working version
Kevin Buzzard (Jul 10 2018 at 10:07):
Which version of Lean should I be using with it? 3.4.1 stable as advertised here: https://github.com/leanprover/lean/releases/tag/v3.4.1 ?
Kevin Buzzard (Jul 10 2018 at 10:07):
Kenny it's not as simple as that. I can get it working myself, it's my users that are having problems.
Kenny Lau (Jul 10 2018 at 10:07):
I see
Kevin Buzzard (Jul 10 2018 at 10:07):
Currently if you follow the readme here
Kevin Buzzard (Jul 10 2018 at 10:07):
https://github.com/ImperialCollegeLondon/xena-UROP-2018/blob/master/README.md
Kevin Buzzard (Jul 10 2018 at 10:08):
then compilation of mathlib fails
Mario Carneiro (Jul 10 2018 at 10:08):
Oh, I see what you mean
Mario Carneiro (Jul 10 2018 at 10:08):
fixed
Kevin Buzzard (Jul 10 2018 at 10:08):
Many thanks for the prompt work!
Last updated: Dec 20 2023 at 11:08 UTC