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

Error: Failed to create symlink for generating metadata #517

Open
ImJeremyHe opened this issue Aug 6, 2022 · 1 comment
Open

Error: Failed to create symlink for generating metadata #517

ImJeremyHe opened this issue Aug 6, 2022 · 1 comment

Comments

@ImJeremyHe
Copy link

in macOs, with cargo-raze 0.16.0

cargo raze --verbose

And the output:

Loaded override settings: RazeSettings {
    workspace_path: "//cargo",
    package_aliases_dir: ".",
    render_package_aliases: true,
    target: None,
    targets: Some(
        {
            "x86_64-apple-darwin",
            "x86_64-pc-windows-msvc",
            "x86_64-unknown-linux-gnu",
        },
    ),
    binary_deps: {},
    crates: {},
    gen_workspace_prefix: "raze",
    genmode: Remote,
    output_buildfile_suffix: "BUILD.bazel",
    default_gen_buildrs: true,
    registry: "https://crates.io/api/v1/crates/{crate}/{version}/download",
    index_url: "https://github.com/rust-lang/crates.io-index",
    rust_rules_workspace_name: "rules_rust",
    vendor_dir: "vendor",
    experimental_api: false,
}
Error: Failed to create symlink for generating metadata

Caused by:
    File exists (os error 17)
@tamuhey
Copy link

tamuhey commented Oct 2, 2022

I debugged this issue and found that src directory in my root directory caused the issue due to this line: https://github.com/google/cargo-raze/blob/142d1b3c63b235eaebddad1829746f6f208fd8a6/impl/src/metadata.rs

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

2 participants