commercialhaskell / commercialhaskell/stack
`stack --work-dir` fails with directories above the current directory
Open
awaiting pull request
type: enhancement
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
#### Steps to reproduce:
1. In any stack project with a parent directory, run `stack build --work-dir=../.stack-work`
#### Expected:
The build proceeds using the `.stack-work` directory of the parent directory
#### Actual:
Stack errors out with
```
InvalidRelDir "../../.stack-work"
```
---
Seems like this ought to work, right?
Contributor guide
Assessment
This issue has not been assessed yet.