Skip to content

extra-lib-dirs ignored when in docker mode #5768

Open
@prolic

Description

@prolic

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions