Skip to content

Conversation

BD103
Copy link
Member

@BD103 BD103 commented Feb 24, 2025

Fixes #267! For more context, see this comment:

I found the issue! Due to rust-lang/rustup#3703, Rustup no longer modifies the PATH on Windows because it prevented sub-invocations of cargo and rustc from going through their proxy. There was a call for testing related to this, but it was announced before the linter was ever created. Because I don't use Windows frequently, I never caught the issue.

We can fix this by setting RUSTUP_WINDOWS_PATH_ADD_BIN=1:

> set RUSTUP_WINDOWS_PATH_ADD_BIN=1
> rustup run nightly-2025-01-09 .\bevy_lint.exe

@BD103 BD103 added A-Linter Related to the linter and custom lints C-Bug A bug in the program S-Needs-Review The PR needs to be reviewed before it can be merged labels Feb 24, 2025
Copy link
Collaborator

@DaAlbrecht DaAlbrecht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so glad this fixes it ^^

@DaAlbrecht DaAlbrecht merged commit 9292db9 into main Feb 24, 2025
8 checks passed
@DaAlbrecht DaAlbrecht deleted the fix-windows-path branch February 24, 2025 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Related to the linter and custom lints C-Bug A bug in the program S-Needs-Review The PR needs to be reviewed before it can be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustc_driver.dll not found on Windows
2 participants