Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Cryptic error without a tty #95

@LegNeato

Description

@LegNeato

When running w/o a tty (for example, in CI), if you use a command where cargo-gpu needs to ask you something, you get a cryptic error. Adding --auto-install-rust-toolchain, which makes cargo-gpu not require a tty, shows no error.

2025-07-03T19:59:12Z INFO  cargo_gpu::target_specs] target-specs: found crate `rustc_codegen_spirv-target-specs` with manifest at `/home/runner/.cargo/git/checkouts/rust-gpu-d06d15e2ba0f0ae2/30024f8/crates/rustc_codegen_spirv-target-specs/Cargo.toml`
[2025-07-03T19:59:12Z INFO  cargo_gpu::target_specs] target-specs: found `rustc_codegen_spirv-target-specs` with `target-specs` directory `/home/runner/.cache/rust-gpu/codegen/https___github_com_rust-gpu_rust-gpu_git+30024f86/target-specs`
[2025-07-03T19:59:12Z INFO  cargo_gpu::target_specs] target-specs resolution: coping target-specs from `/home/runner/.cache/rust-gpu/codegen/https___github_com_rust-gpu_rust-gpu_git+30024f86/target-specs`
[2025-07-03T19:59:12Z DEBUG cargo_gpu::install] ensure_toolchain_and_components_exist
[2025-07-03T19:59:12Z DEBUG cargo_gpu::install_toolchain] asking for consent to install the required toolchain
[2025-07-03T19:59:12Z ERROR cargo_gpu] ensuring toolchain and components exist
    
    Caused by:
        0: enabling raw mode
        1: No such device or address (os error 6)
Error: ensuring toolchain and components exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions