-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
Misleading error message when Curl not found. #2906
Comments
So this lazy initialization is done by Phobos. If it can't find Curl, it throws an Exception. Which we end up catching: Lines 1804 to 1807 in a913071
I assume |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System information
Bug Description
An error message like this leads me to think I would have connection problems, code.dlang.org would be down, or the package would be missing. None of those was the case. Instead, Strace revealed the problem:
The real problem here is with the library search paths, as they obviously aren't patched to include curl, meaning something with the Nix derivation used to install it is wrong.
Dub didn't help diagnosing the problem, though. If it can't find curl, I'd expect it to report that in the error message instead of "download failed", or even worse "package not found in registry".
How to reproduce?
Hide the Curl library from DUB and try to build something that local caches aren't enough for.
The text was updated successfully, but these errors were encountered: