Skip to content

Conversation

@chrisnovakovic
Copy link
Contributor

get_plz_bin_path is too aggressive about erroring if the preamble configuration contains an interpreter path prepended with $PLZ_BIN_PATH and argv[0] is located outside a Please repo - this shouldn't be an error case if there are other, valid interpreters in the list that could be executed. Don't immediately emit a fatal error if $PLZ_BIN_PATH can't be resolved - instead, just omit interpreter paths prepended with $PLZ_BIN_PATH from the search path and continue, only erroring if no interpreter paths could be resolved.

`get_plz_bin_path` is too aggressive about erroring if the preamble
configuration contains an interpreter path prepended with
`$PLZ_BIN_PATH` and `argv[0]` is located outside a Please repo - this
shouldn't be an error case if there are other, valid interpreters in the
list that could be executed. Don't immediately emit a fatal error if
`$PLZ_BIN_PATH` can't be resolved - instead, just omit interpreter paths
prepended with `$PLZ_BIN_PATH` from the search path and continue, only
erroring if no interpreter paths could be resolved.
@chrisnovakovic chrisnovakovic merged commit 0f20982 into please-build:master Dec 4, 2025
156 of 158 checks passed
@chrisnovakovic chrisnovakovic deleted the relaxed-plz-bin-path branch December 4, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants