-
-
Notifications
You must be signed in to change notification settings - Fork 388
typecheck
shouldn't require network access
#3128
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
Comments
Hi, thank you for your bug report! I don't know what's going wrong here exactly, but at least on my machine I don't require internet access for this command to succeed. |
|
It's |
It is hie-bios's tasks and the offline flag is useless for v2-* commands. But I am not sure yet what the actual problem here is, like why it suddenly requires Internet. |
|
My view is that this is the expected behaviour, @srid should get in touch with the |
@srid I think the core problem here is cabal doesn't trust nix installed binaries like build tools, so it's trying to cabal install them. See haskell/cabal#8434 (comment) where I try to explain the nix workflow to cabal maintainers. I think hie-bios only calls out to cabal and isn't responsible for network access. |
Is your enhancement request related to a problem? Please describe.
The typecheck command which is evoked when running
haskell-language-server
in the command line (so as to make sure that all files work with HLS) currently accesses the network via cabal. This makes it impossible to use with Nix, unless sandbox is disabled. See srid/haskell-flake#21Describe the solution you'd like
Is there a way to make typecheck work without network access?
Describe alternatives you've considered
Using
--option sandbox false
in Nix, but this is obviously not a good idea.The text was updated successfully, but these errors were encountered: