leanprover-community / leanprover-community/mathlib4

lake update gets stuck if I add mathlib as dependency

Open
#18,256 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lean
Stars
4.2k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

When the last 2 lines are added:


import Lake
open Lake DSL

package "lean1" where
  version := v!"0.1.0"

lean_lib «Lean1» where
  -- add library configuration options here

@[default_target]
lean_exe "lean1" where
  root := `Main

require mathlib from git
  "https://github.com/leanprover-community/mathlib4"

then I run lake update -vv and it displays no output and gets stuck forever with no return.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported setup by adding the shown require mathlib from git declaration and running lake update -vv. Investigate the dependency update entry point and determine why the command hangs; done means the update completes or reports a useful failure instead of remaining stuck.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.