Skip to content
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

Proxies are not used during installation #637

Open
FedericoCeratto opened this issue Apr 26, 2019 · 9 comments
Open

Proxies are not used during installation #637

FedericoCeratto opened this issue Apr 26, 2019 · 9 comments

Comments

@FedericoCeratto
Copy link
Member

Proxies are being used only for some operations e.g. nimble update but not during nimble install:

http_proxy='http://127.0.0.1:9/' https_proxy='http://127.0.0.1:9/' nimble install fswatch

@genotrance
Copy link
Contributor

Nimble only directly uses the proxy when fetching the package list and publishing new packages. All install and update commands are calling git which should be detecting the proxy variable.

Does a git clone work by itself?

@genotrance
Copy link
Contributor

Any update? @FedericoCeratto

@FedericoCeratto
Copy link
Member Author

Nimble is not passing variables to git to use the proxy

@genotrance
Copy link
Contributor

Are you configuring the proxy info in nimble.ini and expecting Nimble to pass it onto git?

@FedericoCeratto
Copy link
Member Author

I have to use environment variables as in the example. Of course Nimble has to pass it correctly to git (or any other VCS).

@genotrance
Copy link
Contributor

I tested this syntax on my Linux system and it worked fine. Nimble calls git with execCmd which allows child processes to inherit such env. variables.

Please share the output of the command if you can. Also, please try a git clone with the same syntax and share that output.

@dom96
Copy link
Collaborator

dom96 commented Sep 21, 2019

Please elaborate @FedericoCeratto ^^

@genotrance
Copy link
Contributor

@FedericoCeratto

@FedericoCeratto
Copy link
Member Author

I found the issue: git ignores any proxy with the url/insteadOf setting I had. Unfortunately Nimble doesn't have a way to detect this behavior.

Anyhow my endgoal is to have #699 supported, so a flag to disable pulling would be safer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants