Skip to content

link.exe path issue in Windows with rust 1.65+ #105825

@ebraraktas

Description

@ebraraktas

First of all, I am not sure if this is the correct repository to open this issue, it may be related to cargo or rustup.

Code

This repository shows how to reproduce the issue. For demo, there is a simple github action which modifies the PATH and tries to build proc-macro2.

I expected to see this happen: With rust 1.64 and older, I can build that crate successfully, as one can see from the logs of this run.

Instead, this happened: With rust 1.65+, rust fails to find correct link.exe after the PATH modification, as one can see from the logs of this run. I expect it to find the correct link.exe, as described in this comment.

Version it worked on

It most recently worked on: 1.64

Version with regression

1.65

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.regression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions