Unclear Error like: A Tokio 1.x context was found, but it is being shutdown
see discussion#4830 first :)
pixi v0.58.0, obscure error reporting with A Tokio 1.x context was found, but it is being shutdown
> [py_env 5/5] RUN --mount=type=cache,target=/root/.cache/rattler/cache df -h && pixi global install --environment build-tools gcc gxx make libcxx && df -h && pixi install --quiet && pixi shell-hook > pixi-shell.sh && echo 'exec "$@"' >> pixi-shell.sh && pixi global uninstall build-tools && pixi clean cache --yes:
8.536 A Tokio 1.x context was found, but it is being shutdown.
8.543
8.543 thread 'tokio-runtime-worker' panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/time/entry.rs:602:9:
8.543 A Tokio 1.x context was found, but it is being shutdown.
8.548 Error: × failed to solve the pypi requirements of environment 'default' for
8.548 │ platform 'linux-64'
8.548 ╰─▶ unexpected panic during PyPI resolution: Failed to do lookahead
8.548 resolution: Failed to download and build `chumpy @ git+https://
8.548 github.com/mattloper/chumpy`
pixi 0.49.0, correctly hint me to install the missing git:
> [py_env 5/5] RUN --mount=type=cache,target=/root/.cache/rattler/cache df -h && pixi global install --environment build-tools gcc gxx make libcxx && df -h && pixi install --quiet && pixi shell-hook > pixi-shell.sh && echo 'exec "$@"' >> pixi-shell.sh && pixi global uninstall build-tools && pixi clean cache --yes:
7.900 A Tokio 1.x context was found, but it is being shutdown.
7.902
7.902 thread 'tokio-runtime-worker' panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.44.2/src/runtime/time/entry.rs:568:9:
7.902 A Tokio 1.x context was found, but it is being shutdown.
7.906 Error: × failed to solve the pypi requirements of 'default' 'linux-64'
7.906 ├─▶ Failed to download and build `chumpy @ git+https://github.com/mattloper/
7.906 │ chumpy`
7.906 ├─▶ Git operation failed
7.906 ╰─▶ Git executable not found. Ensure that Git is installed and available.
7.906
I think this error bubbles up from LookAheadResolver::resolve ( which we are using from uv ).
It may panic, so we try to catch it with catch_unwind, and we set the wrapper message as unexpected panic during PyPI resolution:.
So my guess is that we either need to not convert ::resolve error in miette diagnostic, ( to not lose the underlying error message: Git executable not found. Ensure that Git is installed and available.) or when we catch it, we already lost the underlying error -> in this case maybe something on uv side changed.