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

Print latest version of packages on conflicts #450

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

Print latest version of packages on conflicts #450

bergmark opened this issue Jun 30, 2015 · 2 comments

Comments

@bergmark
Copy link
Member

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
Copy link
Contributor

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
Copy link
Member Author

👍 Thanks!

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

No branches or pull requests

2 participants