fenneclab / hugo-bin

Binary wrapper for Hugo
MIT License
93 stars 26 forks source link

Hugo-bin post install phase does not support proxified environnement #144

Open The-Real-1 opened 11 months ago

The-Real-1 commented 11 months ago

Hi,

We have a forked project from bootstrap-icons and we are facing a problem with the hugo-bin dependency "hugo-bin": "^0.117.1",

Just making an npm install or making a npm i hugo-bin fails on an internal hugo-in procedure to download the associated binary.

image

We are behind a proxy and everything works fine with other dependencies. We have set the npm config proxy and https-proxy . We have also set HTTP_PROXY and HTTPS_PROXY on our system environnements.

It seems like when hugo-bin tries to download the binary, the proxy configuration is lost at some point. Does this behavior comes from the call made inside hugo-bin or is it a native Node bug when calling sub processes ?

Thanks.

XhmikosR commented 10 months ago

You are welcome to make a PR in the package that needs the fix. You will have to try and figure out the package that might need a PR, though. I don't use such environments and my time is limited, so, unfortunately I cannot help more.

BTW see HUGO_BIN_DOWNLOAD_REPO in https://github.com/fenneclab/hugo-bin#installation-options

The-Real-1 commented 10 months ago

Hi @XhmikosR ,

As my time is also limited , i'll try with no guaranty to make a PR. Thanks for the reply.