Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ All notable changes to this project will be documented here.
- Disable pytest cacheprovider to avoid creating .pytest_cache in isolated runs (#709)
- Fixed Python tester to correctly report marks when `markus_marks_earned` equals total or zero (#716)
- Fix worker orphan processes and add server-side max test timeout cap (#710)
- Resolve ghcup isolation installation failure in Haskell autotester (#725)

## [v2.9.0]
- Install stack with GHCup (#626)
Expand Down
12 changes: 10 additions & 2 deletions server/autotest_server/testers/haskell/requirements.system
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,13 @@ if [ ! -x "/usr/local/bin/stack" ]; then
libgmp10 \
libncurses-dev
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh
$HOME/.ghcup/bin/ghcup install stack recommended --isolate /usr/local/bin
fi

# Create a dedicated, empty folder to satisfy ghcup's isolation requirements
mkdir -p /usr/local/bin/stack-isolated

# Install stack cleanly into the isolated subfolder
~/.ghcup/bin/ghcup install stack recommended --isolate /usr/local/bin/stack-isolated

# Link the executable back into the global PATH
ln -sf /usr/local/bin/stack-isolated/stack /usr/local/bin/stack
fi
Loading