Open
Description
Steps to reproduce
- Have a docker image with a custom C lib dependency in /usr/local/lib
- Specify
extra-lib-dirs: /usr/local/lib
in packages.yaml - Have docker enabled in stack.yaml
- Run stack build
- 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