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

create_dir fails if target does not exist #23

Open
freywald opened this issue Apr 17, 2020 · 0 comments
Open

create_dir fails if target does not exist #23

freywald opened this issue Apr 17, 2020 · 0 comments

Comments

@freywald
Copy link

I've got a ~/.cargo/config where I have set up a global target-dir:

[build]
target-dir = "/home/xxx/.cargo/target-main"

Thus in my application there is no default target directory anymore. If I create it, everything works.
If "target" does not exist locally, compilation fails. This is because of create_dir("target/machine") which assumes a local "target" directory exists.

There is "std::fs::create_dir_all" which should fix 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

1 participant