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

cargo install bootimage does not work unless config.toml deleted #1194

Closed
bentotten opened this issue Feb 23, 2023 · 4 comments
Closed

cargo install bootimage does not work unless config.toml deleted #1194

bentotten opened this issue Feb 23, 2023 · 4 comments

Comments

@bentotten
Copy link

Unfortunately when attempting to install bootimage with cargo bootimage, it fails with several errors. After some initial scouting online, I retried this from the stable version and from the parent directory, but no luck. After deleting my config.toml, it installed correctly.

Sample error messages:
error[E0425]: cannot find function, tuple struct or tuple variant Some in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Err in this scope
error[E0425]: cannot find function, tuple struct or tuple variant Ok in this scope

[Ubuntu 22.04.1 LTS running in a VirtualBox VM]

@phil-opp
Copy link
Owner

This is unfornuately a known problem in cargo. It should normally ignore .cargo/config.toml keys for cargo install, but apparently it doesn't do that for some build-std keys. The current workaround is to run the cargo install command from a parent directory, e.g. your home directory.

See also #853 .

@bentotten
Copy link
Author

bentotten commented Feb 24, 2023

Unfortunately it also did not work from the parent directory; a quick removal of the config.toml did the trick though. Will go ahead and close the issue due to the root problem being with cargo

@bentotten bentotten closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2023
@johnvan08
Copy link

but how work on windows?

@phil-opp
Copy link
Owner

@johnvan08 If you're encountering issues on Windows, please oen a new issue to discuss this.

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

3 participants