Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image fails to build due to package dependency constraints #20

Open
YourPsychiatrist opened this issue Jan 30, 2020 · 2 comments

Comments

@YourPsychiatrist
Copy link

When running the command docker build -t underscore/book . as instructed in the README, the image build fails with the following error message:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for pandoc-crossref-0.2.5.0:
    containers-0.6.0.1 from stack configuration does not match >=0.1 && <0.6  (latest matching
                       version is 0.5.11.0)
needed since pandoc-crossref is a build target.

In the dependencies for syb-0.6:
    base-4.12.0.0 from stack configuration does not match >=4.0 && <4.10  (latest matching version
                  is 4.9.1.0)
needed since syb is a build target.

Some different approaches to resolving this:

  * Set 'allow-newer: true'
    in /root/.stack/config.yaml to ignore all version constraints and build anyway.

  * Build requires unattainable version of base. Since base is a part of GHC, you most likely need
    to use a different GHC version with the matching base.

Plan construction failed.
The command '/bin/sh -c stack install pandoc roman-numerals-0.5.1.5 syb-0.6 pandoc-crossref-0.2.5.0 pandoc-include-0.0.1' returned a non-zero code: 1

Consider updating the Dockerfile or adding instructions to the README on how to fix the conflicts manually.

@davegurnell
Copy link

davegurnell commented Jan 30, 2020 via email

@YourPsychiatrist
Copy link
Author

Any updates yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants