You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After successfully building with head.hackage, I'm seeing build failures because the index is locked. I don't yet have a reproduction but have seen this yesterday and today.
$ cabal build all --enable-tests --enable-benchmarks --dry-run --minimize-conflict-set
Warning: this is a debug build of cabal-install with assertions enabled.
Warning: Parsing the index cache failed (Data.Binary.Get.runGet at position
16: Non-matching structured hashes: f46da61e7afa58a5e8fd1d2b6fb79899;
expected: d81bdd513f41b5d7ee4cd28455adadbe). Trying to regenerate the index
cache...
Warning: Parsing the index cache failed (Data.Binary.Get.runGet at position
16: Non-matching structured hashes: f46da61e7afa58a5e8fd1d2b6fb79899;
expected: d81bdd513f41b5d7ee4cd28455adadbe). Trying to regenerate the index
cache...
~/.cabal/packages/head.hackage.ghc.haskell.org/01-index.tar: withFile: resource busy (file is locked)
The workaround I'm using is to delete ~/.cabal/packages/head.hackage.ghc.haskell.org followed up by cabal update. Could this be a problem if we start using head.hackage in CI?
Try again and there's another conflict for Cabal-syntax that I can fix the same way;
$ cabal build all --enable-tests --enable-benchmarks --dry-run
Warning: this is a debug build of cabal-install with assertions enabled.
Resolving dependencies...
Error: [Cabal-7107]
Could not resolve dependencies:
[__0] next goal: Cabal-syntax (user goal)
[__0] rejecting: Cabal-syntax-3.11.0.0
(constraint from cabal.project.local requires ==3.8.1.0)
[__0] rejecting: Cabal-syntax-3.10.2.0/installed-8eb4, Cabal-syntax-3.10.2.0, Cabal-syntax-3.10.1.0, Cabal-syntax-3.8.1.0, Cabal-syntax-3.6.0.0 (constraint from user target requires ==3.11.0.0)
[__0] fail (backjumping, conflict set: Cabal-syntax)
After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: Cabal-syntax
After successfully building with head.hackage, I'm seeing build failures because the index is locked. I don't yet have a reproduction but have seen this yesterday and today.
The workaround I'm using is to delete
~/.cabal/packages/head.hackage.ghc.haskell.org
followed up bycabal update
. Could this be a problem if we start using head.hackage in CI?Set up of
head.hackage
I followed the above head.hackage instructions with master. The default
cabal.project
builds but not at first;I can fix this by commenting out the constraint conflict on
Cabal
incabal.project.local
;Try again and there's another conflict for
Cabal-syntax
that I can fix the same way;Now
cabal build ...
works.Originally posted by @philderbeast in #9808 (comment)
The text was updated successfully, but these errors were encountered: