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

Print latest version of packages on conflicts #450

Closed
bergmark opened this Issue Jun 30, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@bergmark
Member

bergmark commented Jun 30, 2015

Right now:

--  Failure when adding dependencies:
      free: needed (>=4 && <5), but couldn't resolve its dependencies
    needed for package: adjunctions-4.2.1

It would be nice to add the latest version to save me from having too find that elsewhere, perhaps like this:

--  Failure when adding dependencies:
      free: needed (>=4 && <5), latest 4.12.1, but couldn't resolve its dependencies
    needed for package: adjunctions-4.2.1

Using the latest version is often what you want.

snoyberg added a commit that referenced this issue Jun 30, 2015

@snoyberg

This comment has been minimized.

Contributor

snoyberg commented Jun 30, 2015

The code for this was already present, the latest version was simply only being displayed when a dependency was missing, so this was pretty easy. New output sample:

$ stack build --dry-run
While constructing the BuildPlan the following exceptions were encountered:

--  Failure when adding dependencies:
      Cabal: needed (<1.1), latest is 1.22.4.0, but 1.18.1.5 found
    needed for package: stack-0.1.1.0

Can you test out master?

@snoyberg snoyberg added this to the 0.2.0.0 milestone Jun 30, 2015

@bergmark

This comment has been minimized.

Member

bergmark commented Jun 30, 2015

👍 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment