Skip to content

Commit ad5ab23

Browse files
committed
fix: Include execve case for precedence
1 parent e4d8ae7 commit ad5ab23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

text/3502-cargo-script.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ The precedence schema for `cargo foo` has limitations
430430
- If your script has the same name as a built-in subcommand, then you have to prefix it with `./`
431431
- 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.
432432
- 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
433434

434435
This increases the maintenance and support burden for the cargo team, a team
435436
that is already limited in its availability.

0 commit comments

Comments
 (0)