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

Generate fails in environment without rustup #1206

Open
Toby222 opened this issue May 3, 2024 · 0 comments
Open

Generate fails in environment without rustup #1206

Toby222 opened this issue May 3, 2024 · 0 comments

Comments

@Toby222
Copy link

Toby222 commented May 3, 2024

Running spacetime generate ... in an environment without rustup fails.
When trying to format the autogenerated files, it throws Error: No such file or directory (os error 2), complaining that the rustup binary is misisng here.
In my case, running NixOS, cargo and such are installed via nix.
A few lines above where it tries to install the wasm32-unknown-unknown target it correctly doesn't exit, and just tries to continue anyway.

Ideally it should only fail if rustfmt is missing, not if it fails to isntall rustfmt via rustup.
(Or formatting would simply be skipped on autogenerated files if errors occur, installing rustup components without the user's input does not seem good at all)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant