Skip to content

Commit

Permalink
Merge pull request #39 from FelisNivalis/patch-1
Browse files Browse the repository at this point in the history
set `GHCUP_INSTALL_BASE_PREFIX` for `ghcup install`
  • Loading branch information
sestrella authored Jul 2, 2024
2 parents d0c2964 + dddae4b commit 68d00af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ install_version() {
ensure_ghcup

if [[ $tool == "ghc" ]] || { [[ $tool == "hls" ]] && [[ $(ver "$version") -ge $(ver "1.7") ]]; }; then
"$(ghcup_bin_dir)/ghcup" install "$tool" "$version" -i "$path"
GHCUP_INSTALL_BASE_PREFIX="$(asdf_plugin_path)" "$(ghcup_bin_dir)/ghcup" install "$tool" "$version" -i "$path"
else
"$(ghcup_bin_dir)/ghcup" install "$tool" "$version" -i "${path}/bin"
GHCUP_INSTALL_BASE_PREFIX="$(asdf_plugin_path)" "$(ghcup_bin_dir)/ghcup" install "$tool" "$version" -i "${path}/bin"
fi
}

0 comments on commit 68d00af

Please sign in to comment.