-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix(core): replace binjumper with cmd script without prompt #1939
Conversation
@markerikson Could you check if this works for you? It includes the changes from #1934 yarn set version from sources --branch 1939 |
That will work from scripts, but not if it calls a JS script that calls |
Correct, it only gets rid of the prompt when the bin is spawned by us. Going to add a config to enable the native bins instead of using powershell if @markerikson confirms this works. |
I'd tend to prefer the setting to fallback on the classic legacy behavior (cmd scripts), not on powershell. If one magic isn't enough, I'm reticent about including a second one (ie locating the powershell binary etc) that has its own drawbacks. |
I can confirm that this attempts to execute things via Powershell. Unfortunately, the Bit9 security software still flags this as a "suspicious pattern". It's likely this will work fine for everyone else, and I can try to report this to our internal IT center to see if they can tweak the settings to allow it, but unfortunately it doesn't work for me personally atm. |
a382b7f
to
e13193f
Compare
That's what I was afraid of, I've reverted the powershell change and disabled the native binjumper so it should be as it was before now. Mind trying again? |
Hey, that actually looks like it worked! Haven't run any of the app yet, but:
and no security software popup warnings this time. |
Perfect, if you need any help with anything feel free to pop by on discord - https://discord.gg/yarnpkg |
a9379e3
to
114ec70
Compare
Hey @markerikson 👋 |
cb2b4d0
to
a5bedcb
Compare
Hey. I've had to set aside playing around with Yarn v2 for the moment. It's still something I want to get back to, but there's other priorities right now. |
Totally understandable :) |
93e09bf
to
ef43d1f
Compare
39a9872
to
1b5ef31
Compare
Co-authored-by: Roy Ivy III <[email protected]>
002dfb6
to
a9fbf4e
Compare
What's the problem this PR addresses?
Some users are running in protected systems where running unknown binaries is not allowed.
Fixes #1938
How did you fix it?
Revert #1808 and use cmd again but with a workaround to get rid of the
Terminate batch job
prompt as described in microsoft/terminal#217 (comment) by @rivyChecklist