Skip to content

Don't assume that rustup is installed #620

@aljazerzen

Description

@aljazerzen

When running flutter run -v I get the following output:

[   +3 ms] SEVERE: ================================================================================
[        ] SEVERE: Cargokit BuildTool failed with error:
[        ] SEVERE: --------------------------------------------------------------------------------
[        ] SEVERE:
[        ] SEVERE: rustup not found in PATH.
[        ] SEVERE:
[        ] SEVERE: Maybe you need to install Rust? It only takes a minute:
[        ] SEVERE:
[        ] SEVERE: $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
[        ] SEVERE:
[        ] SEVERE: 

... which I assume is the culprit of [+7091 ms] Error: Build process failed shown later.

This error makes sense, because I don't have rustup installed on my system, since rust toolchain is supplied by the nix dev shell.

I suggest that before invoking rustup, Cargokit checks if a suitable version of rustc is already installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIncludes new improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions