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

Check $CARGO before $PATH #11944

Merged
merged 1 commit into from
Dec 10, 2023
Merged

Conversation

workingjubilee
Copy link
Member

Currently, clippy will ignore $CARGO when spawning cargo commands, which can be problematic for cargo clippy and interop with other tools. This commit induces clippy to respect $CARGO in every case it seems likely to matter.

Fixes:

changelog: clippy now respects setting the CARGO environment variable

@rustbot
Copy link
Collaborator

rustbot commented Dec 9, 2023

r? @Jarcho

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Dec 9, 2023
@Jarcho
Copy link
Contributor

Jarcho commented Dec 10, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Dec 10, 2023

📌 Commit 9083b52 has been approved by Jarcho

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Dec 10, 2023

⌛ Testing commit 9083b52 with merge 87aed03...

@bors
Copy link
Contributor

bors commented Dec 10, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Jarcho
Pushing 87aed03 to master...

@bors bors merged commit 87aed03 into rust-lang:master Dec 10, 2023
@workingjubilee workingjubilee deleted the env-lookup-for-cargo branch December 10, 2023 02:41
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Apr 3, 2024
…, r=onur-ozkan

Set `CARGO` instead of `PATH` for Rust Clippy

Resolves rust-lang#123227

Previously, clippy was using `cargo` from `PATH`, but since [PR](rust-lang/rust-clippy#11944), it now prioritises checking `CARGO` first.
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Apr 3, 2024
Rollup merge of rust-lang#123386 - Rajveer100:branch-for-issue-123227, r=onur-ozkan

Set `CARGO` instead of `PATH` for Rust Clippy

Resolves rust-lang#123227

Previously, clippy was using `cargo` from `PATH`, but since [PR](rust-lang/rust-clippy#11944), it now prioritises checking `CARGO` first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants