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
Build profile: -w ghc-9.2.0.20210422 -O1
In order, the following will be built (use -v for more details):
- primitive-0.7.1.0 (lib) (requires build)
Starting primitive-0.7.1.0 (lib)
Building primitive-0.7.1.0 (lib)
Return code: 1.
We expected to see "Downloading" in the log and then the building would have a chance to succeed.
The text was updated successfully, but these errors were encountered:
I'm not sure if #5952 is related. I have yet to try and reproduce with normal cabal update of head.hackage vs the workaround from this ticket.
Edit: it's potentially related, but it fails already at cabal update from what I read. Also, cabal install may be somehow related, so once this is fixed for cabal build, it would be great to test with cabal install.
So as far as I can tell, the issue is that cabal doesn't verify that a foo-01.tar.gz it already has downloaded from a repo has not "changed out" from under it?
If we know we need a package, we generate the path we expect the local copy of the tar.gz to be in, and check if the file exists. If so, we return the tarball and make use of it.
I.e. we assume a repo does not actually change the tarball it is giving us out from under us.
I think that we would want to change the packageFile function see if the repo is secure, and if so to checksum the file and match it against the hash provided by the repo, redownloading if they don't match.
Does hackage-security provide any convenience functions for this? @phadej@edsko
Pointers to elsewhere in our code where we do this very welcome.
Describe the bug
'cabal build' fails with error code 1 when building a package from https://ghc.gitlab.haskell.org/head.hackage
To Reproduce
Steps to reproduce the behavior as reported by @phadej, after setting up head.hackage, as in the link above:
Cabal file:
Log:
Return code: 1.
We expected to see "Downloading" in the log and then the building would have a chance to succeed.
The text was updated successfully, but these errors were encountered: