-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9d2e73
commit bc00707
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# `glean`: Lean 4 镜像适配工具 | ||
|
||
使用上海交通大学的 https://mirror.sjtu.edu.cn 镜像服务,软件源镜像托管在 `elan` | ||
和 `git/lean4-packages` 下。 | ||
|
||
请自行修改命令中的版本号,可用版本参见: | ||
http://mirror.sjtu.edu.cn/elan/?mirror_intel_list | ||
|
||
## 安装 Elan | ||
|
||
Elan 是 Lean 的版本管理工具,在 Lake 调用时根据项目 `lean-toolchain` 文件下载安装 Lean 并切换到对应的版本。 | ||
|
||
``` | ||
glean -install elan -version 3.0.0 | ||
``` | ||
|
||
## 安装 Lean | ||
|
||
以下操作会安装 Lean 与 Lean 工具链,包含语言服务器、构建工具等。 | ||
|
||
``` | ||
glean -install lean --version 4.1.0 | ||
``` | ||
|
||
## 在构建项目前下载依赖 | ||
|
||
每当下载完一个 Lean 项目后,在启动 VSCode 或命令行运行 `lake build` 前,可以提前通过镜像下载依赖。 | ||
|
||
``` | ||
glean -lake-manifest-path ~/EG/lake-manifest.json | ||
``` |