Skip to content

[Fix #263] Avoid CWD change for GHC session #265

Open
Saizan wants to merge 7 commits intomasterfrom
issue263
Open

[Fix #263] Avoid CWD change for GHC session #265
Saizan wants to merge 7 commits intomasterfrom
issue263

Conversation

@Saizan
Copy link
Copy Markdown
Collaborator

@Saizan Saizan commented Apr 8, 2026

This PR limits changes to CWD to hieBiosSetup (which are needed for hie.yaml like cradle: {bios: {program: "./hadrian/hie-bios"}} or especially shell I suppose, since "program" could be resolved to an absolute path.

I wonder what's a good testcase for this. I tried to set relative paths in OPTIONS_GHC to break it, but they mostly seem ignored anyway.

  • cleanup commits
  • use a lock to avoid concurrent calls to withCurrentDirectory
  • tests

@Saizan Saizan marked this pull request as ready for review April 8, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant