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

Bazel fails to fetch modules when socks5 proxy is used #23617

Open
oakad opened this issue Sep 13, 2024 · 0 comments
Open

Bazel fails to fetch modules when socks5 proxy is used #23617

oakad opened this issue Sep 13, 2024 · 0 comments
Labels
team-Core Skyframe, bazel query, BEP, options parsing, bazelrc type: bug untriaged

Comments

@oakad
Copy link

oakad commented Sep 13, 2024

Description of the bug:

Recent enough Bazel works mostly ok when HTTPS_PROXY env var is set to point to socks5 proxy. However, it breaks on some operations.

Which category does this issue belong to?

Core

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

There's an ssh socks session listening on port 5000, confirmed working

export HTTPS_PROXY=socks5://localhost:5000

Attempting to build a random project

bazel build ....

Starting local Bazel server and connecting to it...
ERROR: Error computing the main repository mapping: Error accessing registry https://bcr.bazel.build/: Failed to fetch registry file https://bcr.bazel.build/modules/rules_java/7.6.1/MODULE.bazel: Proxy address socks5://localhost:5000 is not a valid URL
Computing main repo mapping:

Which operating system are you running Bazel on?

Linux

What is the output of bazel info release?

release 7.2.1

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@github-actions github-actions bot added team-Core Skyframe, bazel query, BEP, options parsing, bazelrc labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Core Skyframe, bazel query, BEP, options parsing, bazelrc type: bug untriaged
Projects
None yet
Development

No branches or pull requests

4 participants