-
Notifications
You must be signed in to change notification settings - Fork 741
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
EXEC : error | error : spawn EINVAL #4968
Comments
A minimal readme.md to repro the EINVAL is: use-extension:
"@microsoft.azure/classic-openapi-validator": "~1.1.5"
input-file: sample.yaml ResourceHealth's config is getting this through: azure-validator: true This imports classic-openapi-validator if we don't also set A workaround is to add |
We are running into this error as well. We are using the legacy C# generator, so the Here is another repro:
|
Well, if legacy one is still needed, and if your problem persists in your build pipelines, the only workaround could be changing your build agent to a linux one (i.e. ubuntu-latest) from windows (windows-latest). That worked for my case. |
I think it should be easy to review our usage of |
Before filling a bug
Describe the bug
Starting from May 17, there were autorest errors in one of our pipeline: https://dev.azure.com/azure-sdk/internal/_build?definitionId=5990&_a=summary
After analysis, we thought it's due to a security enhancement introduced in node v18.20.2: nodejs/node#52554
The fix is to pass
{ shell: true }
when invokingspawn()
. I searched the codes ofautorest
, and I found there are several invocation ofspawn()
. I guess they are for invoking generators. Can we have an alpha build so that we can try on our pipeline to verify the fix?Expected behavior
autorest
should run without error on Windows server 2022 + node v18.20.2Additional context
The text was updated successfully, but these errors were encountered: