You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text/3502-cargo-script.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -430,6 +430,7 @@ The precedence schema for `cargo foo` has limitations
430
430
- If your script has the same name as a built-in subcommand, then you have to prefix it with `./`
431
431
- If you browse a random repo and try to run one of your aliases or third-party commands, you could unintentionally get a local script instead.
432
432
- If `PATH` is unset or set to an empty string, then running `build` will run `cargo build` and run the built-in `build` command rather than your script
433
+
- Calls to `execve` (and similar functions) don't rely on resolving via `PATH` so a call with `build` will run `cargo build` and run the built-in `build` command rather than your script
433
434
434
435
This increases the maintenance and support burden for the cargo team, a team
0 commit comments