dugite icon indicating copy to clipboard operation
dugite copied to clipboard

Proxy support seems to have regressed

Open itsananderson opened this issue 2 years ago • 4 comments

There's an old closed issue #148 where someone reported problems installing dugite behind a proxy. The recommended solution was to set HTTP_PROXY/HTTPS_PROXY which is also documented in the environment variable docs. It seems, however, that when dugite migrated away from requests, those environment variables stopped having any effect.

Now that dugite is using the raw https module, it looks like the easiest solution might be to add global-agent as a dependency and use it inside download-git.js. Here's how @electron/get uses global-agent, for example.

If that solution makes sense (or if you can suggest another solution you'd prefer), I'd be happy to submit a PR.

itsananderson avatar Sep 17 '22 15:09 itsananderson

It make sense, I'd like to see a PR to add global-agent : )

richardo2016 avatar Apr 10 '23 16:04 richardo2016

Hi, that would be great, because in my case it is blocking Electron update.

tpeplinx avatar Apr 11 '23 06:04 tpeplinx

For whom ran into this issue,

cd /tmp && wget https://github.com/desktop/dugite-native/releases/download/v2.39.1/dugite-native-v2.39.1-6e9b509-ubuntu.tar.gz

should help the post install script to use the downloaded cache

jasonqsong avatar Jan 23 '24 14:01 jasonqsong