commercialhaskell / commercialhaskell/stack

`stack --work-dir` fails with directories above the current directory

Open
#1,731 15 comments 1 reaction 0 assignees View on GitHub
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

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.