commercialhaskell / commercialhaskell/stack

extra-lib-dirs ignored when in docker mode

Open
#5,768 2 comments 0 reactions 0 assignees View on GitHub
component: docker
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

### Steps to reproduce

1. Have a docker image with a custom C lib dependency in /usr/local/lib
2. Specify `extra-lib-dirs: /usr/local/lib` in packages.yaml
3. Have docker enabled in stack.yaml
4. Run stack build
5. It will not find the C lib dependency

### Workaround

Setting a symlink the C dependency to /usr/lib solves the issue.

### Expected

Stack should respect the extra-lib-dirs argument when in docker-mode and find the libraries.

### Actual

Stack ignores the extra-lib-dirs argument when in docker-mode and cannot find the libraries.

### Stack version

```
$ stack --version
Version 2.7.5, Git revision ba147e6f59b2da75b1beb98b1888cce97f7032b1 x86_64 hpack-0.34.4
```

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.