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

Don't snip version conflicts #5892

Closed
mitchellwrosen opened this issue Feb 16, 2019 · 2 comments · Fixed by #6476
Closed

Don't snip version conflicts #5892

mitchellwrosen opened this issue Feb 16, 2019 · 2 comments · Fixed by #6476

Comments

@mitchellwrosen
Copy link

It would be convenient for debugging a build failure if I could see all of the version information cabal knows about. Unfortunately it tends to do this:

(conflict: Cabal => containers==0.5.7.1/installed-0.5...)

What's after that 0.5...?? :)

@hvr
Copy link
Member

hvr commented Feb 17, 2019

The code in question is at

-- | String representation of an instance.
showI :: I -> String
showI (I v InRepo) = showVer v
showI (I v (Inst uid)) = showVer v ++ "/installed" ++ shortId uid
where
-- A hack to extract the beginning of the package ABI hash
shortId = snip (splitAt 4) (++ "...")
. snip ((\ (x, y) -> (reverse x, y)) . break (=='-') . reverse) ('-':)
. display
snip p f xs = case p xs of
(ys, zs) -> (if L.null zs then id else f) ys

@grayjay
Copy link
Collaborator

grayjay commented Dec 29, 2019

See #6465 for another example of a truncated version.

@grayjay grayjay self-assigned this Jan 12, 2020
phadej added a commit that referenced this issue Jan 20, 2020
Show full ABI hash for installed packages in solver log (fixes #5892).
grayjay added a commit to grayjay/cabal that referenced this issue Jan 21, 2020
…l#5892).

This commit is the same as 96c3bf9, but with
the unit tests updated to fix haskell#6495.  The tests check less of the solver output
so that they are less fragile.
phadej added a commit that referenced this issue Jan 21, 2020
Show full ABI hash for installed packages in solver log (fixes #5892).
phadej pushed a commit to phadej/cabal that referenced this issue Jan 22, 2020
…l#5892).

This commit is the same as 96c3bf9, but with
the unit tests updated to fix haskell#6495.  The tests check less of the solver output
so that they are less fragile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants