Reduced the issue to a self-contained, reproducible test case.
Description
[Description of the issue]
When I did leanpkg in my terminal, it reported many error like:
/usr/local/leanpkg/leanpkg/main.lean:1:0: error: file 'init' not found in the LEAN_PATH
/usr/local/leanpkg/leanpkg/toml.lean:1:0: error: file 'data/buffer/parser' not found in the LEAN_PATH
/usr/local/leanpkg/leanpkg/lean_version.lean:6:0: error: invalid import: init
could not resolve import: init
Prerequisites
Description
[Description of the issue] When I did leanpkg in my terminal, it reported many error like:
in my leanpkg.toml, it writes:
Steps to Reproduce
leanpkg upgrade
leanpkg build
same errorExpected behavior: [What you expect to happen] I want to import mathlib.
Actual behavior: [What actually happens] I cannot import the file I need in mathlib.
Reproduces how often: [What percentage of the time does it reproduce?]
Versions
Lean (version 3.4.1, commit 17fe3decaf8a, Release) OS version 10.13.2
Additional Information