commercialhaskell / commercialhaskell/stack

Allow setting the working-dir to absolute directories

Open
#6,135 1 comment 1 reaction 0 assignees View on GitHub
type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

Hi I raised an issue with HLS and one of the maintainers got back to me and mentioned that to fix the issue I'm having they would need stack to support absolute directories for the work-dir

> For cabal, we set the work-dir (called builddir) to ~/.cache/hie-bios/...-dist-newstyle or similar. But Stack doesn't support absolute paths for work-dir (last time we checked). The reasoning for forcing relative paths for work-dir is likely outdated.

> So, ideally, I think your best course of action is to raise that issue with stack maintainers (allowing HLS to set the work-dir to some absolute path), maybe even patching stack yourself, and then we can permanently work set the work-dir and you wouldn't need a stack.yaml for development.

Issue: https://github.com/haskell/haskell-language-server/issues/3616

If this sounds correct could you support this? Also I'm willing to help if I can get some pointers, and depending on how complex it is.

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.