-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Build fails to download external dependencies because sync-request module is hopelessly out of date #11136
Comments
Seems like there is a bug or issue in the var res = spawnSync(process.execPath, [require.resolve('./lib/worker.js')], {input: req});
if (res.status !== 0) {
throw new Error("Expected status 0, got " + res.status + ": " + res.stderr.toString());
} I get:
So res.status is |
For some reason, The issue I'm encountering is documented in the I attempted to upgrade the version of I then attempted to upgrade TypeScript to get around this, but that caused all sorts of errors further down the build pipeline. So I then used the nuclear option and updated every Node package to its latest version, but that also caused things to break. Honestly this is an embarrassment of note. If you're going to use Node and its ecosystem, do it properly and keep things updated! The situation of the build process in this repo is shocking and reflects extremely poorly on Azure itself, and honestly makes me wonder exactly how reliable Azure is. Fix it. |
I too am running into this and would like to use recent versions of everything. Is there an ETA for this? |
Same here. Looks like this code is no longer compatible with current node stable versions. Using an old v11.15.0 node things work. Using a current 12.11.0 it fails with this error. |
I am hitting the same problem here: |
This also prevented me from contributing. Is there any easy workaround for this issue? |
Running into this as well. So if I understand correctly, the only way to build azure-pipeline-tasks locally is to downgrade node? Is there a simple way to do this? |
Hello @stephenmichaelf, is there an update on the ETA of this issue? Thanks! |
Same here, please fix it. Not able to build HelmInstallerV1 for on-premises Devops 2019. |
It should be fixed yes; but the issue is somewhere in the combination of nodejs and sync-request. I encountered the same issue when trying to build the AzurePowerShellV5 task. For me it started to work after I installed nodejs v8.17.0 and npm v6.9.0. |
Issue microsoft#11136 Points out that sync-request is way more up-to-date than 3.0.1 Is there any reason not to advance the version for this library?
For anyone following this still. It seems that a PR is in the works to bump this version up for sync-request. microsoft/azure-pipelines-task-lib#665 |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Is the PR for this done? |
I wanted to contribute a bit, but cannot build the PublishTestresultsV2 task due to this error. Failed on Nodejs Edit: At least node 8 seems to work, which is horribly old. |
@walliski - I believe the recommended Node version is 10? https://docs.microsoft.com/en-us/azure/devops/extend/develop/add-build-task?view=azure-devops#prerequisites Though you may have seen this. |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
For example,
ArchiveFilesV2
:Similar issue with
AzureAppServiceManageV0
, I didn't check any others.Important to note that manually downloading the specified ZIP files succeeds.
I am not behind a proxy.
The text was updated successfully, but these errors were encountered: