-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
For the following config:
[GLOBAL]
pants_version = "2.28.0.dev1"
backend_packages = [
"pants.backend.python",
"pants.backend.experimental.python.lint.ruff.check"
]
when I run:
pants lint :: --print-stacktrace -ldebug
I get the output below. It seems to be stuck downloading. I'm on a corporate network and the proxy vars are (now) correctly set. e.g. the following successfully downloads:
./ptex-linux-x86_64 -D https://github.com/astral-sh/ruff/releases/download/0.11.5/ruff-x86_64-unknown-linux-musl.tar.gz > foo.tar.gz
In other words, ptex is working fine with the proxy in place and downloading the file, but when running pants lint ::
, it fails to download ruff. Anything I can do to make it work?
3:03:19.89 [INFO] Scheduler initialized.
13:03:19.89 [DEBUG] Launching 1 roots (poll=false).
13:03:19.89 [DEBUG] computed 1 nodes in 0.000303 seconds. there are 14 total nodes.
13:03:19.89 [DEBUG] Launching 1 roots (poll=false).
13:03:19.89 [DEBUG] computed 1 nodes in 0.000612 seconds. there are 14 total nodes.
13:03:19.94 [DEBUG] specs are: Specs(includes=RawSpecs(description_of_origin='CLI arguments', address_literals=(), file_literals=(), file_globs=(), dir_literals=(), dir_globs=(), recursive_globs=(RecursiveGlobSpec(directory='projects/etl'),), ancestor_globs=(), unmatched_glob_behavior=<GlobMatchErrorBehavior.error: 'error'>, filter_by_global_options=True, from_change_detection=False), ignores=RawSpecs(description_of_origin='CLI arguments', address_literals=(), file_literals=(), file_globs=(), dir_literals=(), dir_globs=(), recursive_globs=(), ancestor_globs=(), unmatched_glob_behavior=<GlobMatchErrorBehavior.error: 'error'>, filter_by_global_options=False, from_change_detection=False))
13:03:19.94 [DEBUG] changed_options are: ChangedOptions(since=None, diffspec=None, dependents=<DependentsOption.NONE: 'none'>)
13:03:19.94 [DEBUG] Launching 1 roots (poll=false).
13:03:19.94 [DEBUG] Found BuildRoot("/home/ec2-user/dev/project") starting search from /home/ec2-user/dev/project.
13:03:19.95 [DEBUG] computed 1 nodes in 0.017292 seconds. there are 17 total nodes.
13:03:19.95 [DEBUG] Launching 1 roots (poll=false).
13:03:19.96 [DEBUG] computed 1 nodes in 0.000721 seconds. there are 22 total nodes.
13:03:19.96 [DEBUG] Launching 1 roots (poll=false).
13:03:19.96 [DEBUG] computed 1 nodes in 0.000100 seconds. there are 22 total nodes.
13:03:19.96 [DEBUG] requesting <class 'pants.core.goals.lint.Lint'> to satisfy execution of `lint` goal
13:03:19.96 [DEBUG] Launching 1 roots (poll=false).
13:03:19.98 [DEBUG] Completed: Generate `python_requirement` targets from requirements.txt or PEP 621 compliant pyproject.toml
13:03:19.98 [DEBUG] Completed: Find targets from input specs
13:03:19.98 [DEBUG] Completed: Find all sources from input specs
13:03:19.99 [DEBUG] Downloading https://github.com/astral-sh/ruff/releases/download/0.11.5/ruff-x86_64-unknown-linux-musl.tar.gz (attempt #1)
13:03:19.99 [DEBUG] Completed: Find config files
13:05:33.68 [DEBUG] Error while downloading https://github.com/astral-sh/ruff/releases/download/0.11.5/ruff-x86_64-unknown-linux-musl.tar.gz: Error downloading file: error sending request for url (https://github.com/astral-sh/ruff/releases/download/0.11.5/ruff-x86_64-unknown-linux-musl.tar.gz) (retryable)
13:05:33.87 [DEBUG] Downloading https://github.com/astral-sh/ruff/releases/download/0.11.5/ruff-x86_64-unknown-linux-musl.tar.gz (attempt #2)
⠈ 170.39s Downloading: https://github.com/astral-sh/ruff/releases/download/0.11.5/ruff-x86_64-unknown-linux-musl.tar.gz (10.88 MB)
⠈
Metadata
Metadata
Assignees
Labels
No labels