Repository navigation
Don't warn for restricted characters when unsafe.allowUnsafeCustomBinary is set - #1194
devtechedge wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: 2179c19 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Hi - polite check-in on the custom-binary warn skip whenever bandwidth allows. Even with
Local unit suite was green after the change; GitHub Actions CI and Lint are still in Glad to adjust wording, drop the changeset shape, or align with any preferred option from Whenever it fits is fine - still ready from my end. |
|
Hello, thank you for the PR and for the associated issue. This change is going to be rolled into the v4 release #1193 which should be released within the week. Thanks |
|
Thanks for the update, Steve. Glad the fix fits into the v4 release, and the detailed release notes there look great. Happy to adjust anything on my end if it helps the rollup. |
When a custom binary path contains restricted characters and
unsafe: { allowUnsafeCustomBinary: true }is set, construction succeeds but still prints "Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option" toconsole.warn. Applications that create an instance per repo or workspace see the same warning several times at startup even though every git call succeeds.This change skips the warning on the opted-in path. Supplying
unsafe.allowUnsafeCustomBinaryis the acknowledgement, so warning again per construction is noise. Restricted characters without the option continue to throw with the same error as before. This follows the first option suggested in the issue: do not warn when the flag is true.Fixes #1190
Testing:
console.warnis never called and construction succeeds when the option is set.