This repository was archived by the owner on Jan 5, 2024. It is now read-only.
Action doesn't handle pre-installed GHCup properly #37
Labels
re: ghcup
Concerning setup using ghcup
This action works perfectly if you don't have pre-installed ghcup on machine. It uses apt to install versions and they are resolved correctly.
But when we install GHCup on machine (to the default location
$HOME/.ghcup
) we can see very strange behavior:$HOME/.ghcup
, action tries to invoke ghcup set command and download own version of ghcup to toolcache folder: https://github.com/haskell/actions/blob/main/setup/src/installer.ts#L210So even if ghcup is pre-installed on machine and available in PATH, action will download own ghcup to tool-cache and use it for all operations.
Probably, ghcupBin function should try to find
ghcup
in PATH and download in case if it is not found.The text was updated successfully, but these errors were encountered: