-
Notifications
You must be signed in to change notification settings - Fork 696
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
cabal configure
makes undesired network requests
#5363
Comments
Is this a regression compared to prior versions of cabal, or longstanding behavior? |
With cabal-install 1.24, there is no attempt to do an "initial bootstrap of secure repository" or find nslookup or download "root"; it just complains and then moves on:
|
/cc @hvr |
for some reason changing this in rules file
fixes the issue... |
(that tells it to compile Setup.hs as debian/hlibrary.setup and to run e.g. |
That makes sense -- just running the setup.hs script directly is a lot more "basic" as an interface than using the cabal-install tool. |
FTR, we only use cabal(-install) itself for a couple of packages. |
@23Skidoo iirc this is a side-effect of the hackage-security integration which tries to bootstrap the TUF metadata, specifically the |
This (I think) bit me recently, I had installed a fresh ghc 8.4.3 and cabal 2.2 to work on a train journey without internet access, but it was wedged:
Luckily I had an old cabal binary that still worked offline so I could still hack on my code a bit:
|
This also bit me under NixOS with Even on my internet-connected development host, each version: cabal-install 3.0.0.0 |
I'm having the same problem as @schmittlauch, cabal's bootstrapping TUF with a network connection breaks its use in a nix build container
this fixes that, but there are further problems |
cabal-install 3.4 includes a documented fix/ workaround: #4821 (comment) |
Does this happen only on initial run in a clean env (i.e. bootstrapping) or does it occur even after that data is fetched? i.e. if there's a successful |
Does this still occur on master? I tried it out and it appears to work properly (albeit with ugly error message formatting?)
|
Hello! Could you help us? Can you still reproduce the problem with cabal 3.6.2? Thank you! |
Currently only cabal-install 3.4 is in nixpkgs, so I hope to come back to this later once 3.6.2 has reached the repo. |
How am I supposed to repro this exactly? My guess: Console interaction
So, no problem with |
With new cabals, |
BTW, the discussion seems to have moved to #5346. |
Not sure if this is a bug in cabal-install or hackage-security.
When running
cabal
as part of a Debian package build,requiresBootstrap
triggers and this happens.We don't actually want it to do that. Maybe if this is a desired default, an --offline flag could be added for all relevant subcommands (cf. #5346). Also this is apparently breaking Ubuntu.
The text was updated successfully, but these errors were encountered: