haskell / haskell/cabal

Specifying --with-ghc and local dependencies does not work well

Open
#3,411 1 comment 0 reactions 0 assignees View on GitHub
meta: easy type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

This is probably a very niche concern but if I specify --with-ghc with a relative path but also have local dependencies then the build will fail.

For example,

```
cabal install --with-ghc=inplace/bin/ghc-stage2 numtype-dk/ dimensional-1.0.1.1
```

Then cabal will cd into `numtype-dk` directory and no longer be able to find the compiler. If i give the full path then everything works as expected.

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.