-
Notifications
You must be signed in to change notification settings - Fork 518
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
bootstrap --offline
uses https_proxy
#2887
Comments
setting the build to offline mode just avoids starting the HTTP libraries: Lines 15 to 23 in b64d94f
If no proxy values are set, it won't call the API and will be fine. However, by setting the proxy values, the detection that happens at start time (outside of bootstrapping's script) tries to call it. At this point, the code attempts to configure the client proxy and I believe that because we never started the HTTP client (because of the offline option), the operation fails. Basically, the error is a very unclear way of saying "you're trying to set a proxy on a client that doesn't exist" and that fails. |
Ok, I'm not sure I can follow the logic here. IMHO, in offline mode, the proxy variables shouldn't cause any behaviour change at all. |
Yeah avoiding the error would require making sure that the code in rebar3/apps/rebar/src/rebar_utils.erl Lines 991 to 1028 in b64d94f
REBAR_OFFLINE is set to "1" to avoid trying to configure an HTTP client that was never started.
|
Please excuse my ignorance about rebar3, I didn't package it myself for pkgsrc, I'm just reporting a build bug I noticed. We have a rebar3 package in pkgsrc for a couple years now, but recently we wanted to ensure that packages do not cause network traffic while building (the network traffic should happen in the 'fetch' phase) and set the https_proxy environment variable by default, to an invalid value.
In a recent build I noticed that rebar3 is now broken.
The build log ends with:
The build runs
./bootstrap --offline
which I would expect to not evaluate or use any proxies.Can you please advise how to make the build phase not try to use any proxies?
The text was updated successfully, but these errors were encountered: