Skip to content

create_dir fails if target does not exist #23

Description

@freywald

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions