Skip to content

Commit

Permalink
ghcup: update ghcup-0.0.7.yaml to ghcup-0.0.8.yaml (#267)
Browse files Browse the repository at this point in the history
* ghcup: update ghcup-0.0.7.yaml to ghcup-0.0.8.yaml
if not, ghcup will try to retrive ghcup-0.0.8.yaml from github

---------

Co-authored-by: TianKai Ma <[email protected]>
  • Loading branch information
Erchiusx and tiankaima authored Sep 23, 2024
1 parent 13452d7 commit b97fee3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/ghcup.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ Stackage 源使用。

!!! note

以下命令会安装并配置 GHCup 0.0.7 版本的元数据。可查看
以下命令会安装并配置 GHCup 0.0.8 版本的元数据。可查看
<https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/>
目录的内容,并选择需要安装的 GHCup 版本的 yaml 文件替换以下命令中的
URL。

**第一步(可选)** :使用科大源安装 GHCup 本体。如已经安装 GHCup,可跳到下一步。

# Linux, FreeBSD, macOS 用户:在终端中运行如下命令
curl --proto '=https' --tlsv1.2 -sSf https://mirrors.ustc.edu.cn/ghcup/sh/bootstrap-haskell | BOOTSTRAP_HASKELL_YAML=https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-0.0.7.yaml sh
curl --proto '=https' --tlsv1.2 -sSf https://mirrors.ustc.edu.cn/ghcup/sh/bootstrap-haskell | BOOTSTRAP_HASKELL_YAML=https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-0.0.8.yaml sh

# Windows 用户:以非管理员身份在 PowerShell 中运行如下命令
$env:BOOTSTRAP_HASKELL_YAML = 'https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-0.0.7.yaml'
$env:BOOTSTRAP_HASKELL_YAML = 'https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-0.0.8.yaml'
Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest https://mirrors.ustc.edu.cn/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $true

**第二步** :配置 GHCup 使用科大源。编辑 `~/.ghcup/config.yaml` 增加如下配置:

url-source:
OwnSource: https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-0.0.7.yaml
OwnSource: https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-0.0.8.yaml

**第三步(可选)** :配置 Cabal 和 Stack 使用科大源,请参考文档 [hackage](hackage.md)[stackage](stackage.md)

Expand All @@ -48,8 +48,8 @@ Stackage 源使用。

url-source:
OwnSource:
- https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-0.0.7.yaml
- https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-prereleases-0.0.7.yaml
- https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-0.0.8.yaml
- https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-prereleases-0.0.8.yaml

## 相关链接

Expand Down

0 comments on commit b97fee3

Please sign in to comment.