Skip to content
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

Node 6 deprecation warning #817

Open
DanielBrown-ranger1968 opened this issue Nov 21, 2021 · 3 comments
Open

Node 6 deprecation warning #817

DanielBrown-ranger1968 opened this issue Nov 21, 2021 · 3 comments

Comments

@DanielBrown-ranger1968
Copy link

Getting this warning in Azure Devops pipeline when using the Create Image Source VM task (version 3,0.17):

This task uses Node 6 execution handler, which will be deprecated soon. If you are the developer of the task - please consider the migration guideline to Node 10 handler - https://aka.ms/migrateTaskNode10. If you are the user - feel free to reach out to the owners of this task to proceed on migration.

Alos see this in the task log:
(node:7024) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

@leovms
Copy link
Contributor

leovms commented Jan 5, 2022

@DanBrown-TechSmith, looking at the tasks definitions, I see we're using, or at least requesting, the use of Node 10. Can you double check this is not something in the build agent that is used, where it is defaulting to use Node 6?

"execution": {
    "Node10": {
        "target": "task.js"
    }
}

@DanielBrown-ranger1968
Copy link
Author

The pipeline in question is running on hosted agents (windows-2019 image) so I am not sure what Node version they default to.

@DanielBrown-ranger1968
Copy link
Author

I do see that the azure-pipelines-task-lib version is less than specified in step 3 of the migration instructions.

"azure-pipelines-task-lib": "^3.1.2",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants