Skip to content

Cargo included in Rust 1.1 can no longer build in Windows NTFS junctions #1749

Closed
@Zarathustra30

Description

@Zarathustra30

The following script creates a new project, compiles/runs it, creates a NTFS junction to the project, and attempts to compile/run the project through the NTFS junction. It runs successfully with the version included in Rust 1.0, but fails with the version included in Rust 1.1, with the error Could not find Cargo.toml in 'path\to\example\linked_project'.

@echo off
cargo new normal_project --bin
cd normal_project
cargo run
cd ..
mklink /J linked_project normal_project
cd linked_project
dir
cargo run
cd ..

(This script will fail if there already exists a normal_project or linked_project and fails to clean after itself)

As a side note, Cargo probably shouldn't have to compile this twice, but that may be expected behavior.

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