-
Notifications
You must be signed in to change notification settings - Fork 37
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
A clean cabal install fails with "tar checksum error" #89
Comments
Surprisingly, for some reason I cannot reproduce it with Cabal built locally from the repo. (I'm on M2, so no prebuilt assets available for my platform) |
I'm guessing this is because the two versions of |
If that leads to a checksum error then one of the versions is highly buggy. |
I managed to reproduce. Transferring to A standalone reproducer is:
|
Fixed in bed491b. |
Does cabal need to do anything (e.g., exclude a version of tar in its deps)? |
I guess the same thing every software project does when a dependency fixes a bug. |
Oh, that's helpful, thank you. So we'll ignore it. |
@Mikolaj you meant to say that we'll exclude the affected version from our build plans, right? |
I'd rather lean towards the inertia, inaction and passive reactivity typical to software projects. I think cabal is properly setup for such a lazy approach, because our bounds are not too specific, so any new minor version should be accepted and build plans usually default to the newest minor versions. If that's proven insufficient by user reports, we'd panic. Sounds good? |
Hmm I am not sure I agree with this course of action. |
Unicode was not properly supported in |
preventative forbidding versions with bugs of upstream deps is a bad road to go down except in exceptional circumstances. deps are constantly fixing bugs, etc. one whole point of the pvp and minor versions etc is so we can set up ranges to take advantage of this automatically. Going out of our way on this or that thing will lead to very convoluted release files, and a counsel of perfection we can never hold-to. |
Don't worry, GHCup will clean up after cabal devs anyway. |
It appears cabal-install-3.10.3.0 binaries are linked against 0.5.1.1 still:
So it appears the assumption of @Mikolaj that their CI does automatically do the right thing is false. Nothing gets updated, everything is pinned. |
@gbaz does this qualify as exceptional circumstances? |
Indeed, I was wrong, I learned about the pinned index state only a few days ago, we discussed it on the cabal devs meeting, but we failed to connect it with the issue of last minute urgent upstream fixes like this one. So we need at least to revisit our policy of updating index state after the release: haskell/cabal#9610 (comment) I've opened a separate issue for that discussion: haskell/cabal#9819 @Kleidukos: apologies, you were right all along. Did you know about the fixed index state? |
@Mikolaj no I did not know, I just wanted not to have to take action later on. |
Describe the bug
A clean cabal install fails with "tar checksum error".
To Reproduce
In a clean
debian:12
container:Expected behavior
It should build and install
haskell-language-server
. Instead I get:System information
debian:12
Linux build01 6.7.4 haskell/cabal#1-NixOS SMP PREEMPT_DYNAMIC Mon Feb 5 20:17:12 UTC 2024 x86_64 GNU/Linux
cabal-head
as of 833a17deb0a5c5f99849a5b6bf06b5346105b918ghc-9.8.2
The text was updated successfully, but these errors were encountered: