diff --git a/docs/guide.md b/docs/guide.md index c855a3e..b78e0d4 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -327,18 +327,20 @@ This will execute vscode with GHC set to 8.10.7 and all other tools to their lat # Troubleshooting -## The script immediately exits on windows +## Script immediately exits on windows There are two possible reasons: 1. your company blocks the script (some have a whitelist)... ask your administrator 2. your Antivirus or Windows Defender interfere with the installation. Disable them temporarily. -## Darwin "C compiler cannot create executables" +## C compiler cannot create executables + +### Darwin You need to update your XCode command line tools, e.g. [like this](https://stackoverflow.com/questions/34617452/how-to-update-xcode-from-command-line). -## I get certificate authority errors (or similar) +## Certificate authority errors (curl) If your certificates are outdated or improperly configured, curl may be unable to download ghcup. @@ -350,6 +352,6 @@ There are two known workarounds: On windows, you can disable curl like so: -``` +```pwsh Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $true ``` diff --git a/docs/index.md b/docs/index.md index 2773b55..b78a438 100644 --- a/docs/index.md +++ b/docs/index.md @@ -57,7 +57,7 @@ hide:
- Need help? Ask on + Need help? Check the Troubleshooting section or ask on diff --git a/scripts/bootstrap/bootstrap-haskell b/scripts/bootstrap/bootstrap-haskell index c095592..bdbb826 100755 --- a/scripts/bootstrap/bootstrap-haskell +++ b/scripts/bootstrap/bootstrap-haskell @@ -326,9 +326,11 @@ download_ghcup() { MSYS*|MINGW*) case "${BOOTSTRAP_HASKELL_DOWNLOADER}" in "curl") + # shellcheck disable=SC2086 edo curl -Lf ${GHCUP_CURL_OPTS} "${_url}" > "${GHCUP_BIN}"/ghcup.exe ;; "wget") + # shellcheck disable=SC2086 edo wget -O /dev/stdout ${GHCUP_WGET_OPTS} "${_url}" > "${GHCUP_BIN}"/ghcup.exe ;; *) @@ -340,9 +342,11 @@ download_ghcup() { *) case "${BOOTSTRAP_HASKELL_DOWNLOADER}" in "curl") + # shellcheck disable=SC2086 edo curl -Lf ${GHCUP_CURL_OPTS} "${_url}" > "${GHCUP_BIN}"/ghcup ;; "wget") + # shellcheck disable=SC2086 edo wget -O /dev/stdout ${GHCUP_WGET_OPTS} "${_url}" > "${GHCUP_BIN}"/ghcup ;; *) @@ -377,6 +381,7 @@ download_ghcup() { edo . "${GHCUP_DIR}"/env case "${BOOTSTRAP_HASKELL_DOWNLOADER}" in "curl") + eghcup config set downloader Curl ;; "wget") eghcup config set downloader Wget