hey24sheep / azure-flutter-tasks

Easily build and deploy with latest Flutter build tasks for Azure DevOps Pipelines Tasks
https://marketplace.visualstudio.com/items?itemName=Hey24sheep.flutter
MIT License
86 stars 22 forks source link

End-of-life Node version on Flutter Install Task #124

Open LucasRohr opened 2 weeks ago

LucasRohr commented 2 weeks ago

Hey, I'm currently working on a Flutter project using Azure Pipelines and the Flutter Install Task created on this repo and it was working as usual until a couple of days ago.

It happens that the used Node version of the Install task (version 10) is considered End-of-life (deprecated) now and should be updated to Node 20. The fact that version 10 is deprecated now makes all pipelines with the Flutter Install Task fail, as you can see in the logs bellow.

Could you please update the Node version to avoid pipeline breaks? Thanks in advance.

##[warning]Task 'Flutter Install Task' version 0 (FlutterInstall@0) is dependent on a Node version (10) that is end-of-life. Contact the extension owner for an updated version of the task. Task maintainers should review Node upgrade guidance: https://aka.ms/node-runner-guidance
##[error]Object reference not set to an instance of an object.
##[debug]System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskManager.CheckIfTaskNodeRunnerIsDeprecated(IExecutionContext executionContext, TaskStepDefinitionReference task) in /Users/runner/work/1/s/src/Agent.Worker/TaskManager.cs:line 382
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskManager.DownloadAsync(IExecutionContext executionContext, IEnumerable`1 steps) in /Users/runner/work/1/s/src/Agent.Worker/TaskManager.cs:line 100
   at Microsoft.VisualStudio.Services.Agent.Worker.JobExtension.InitializeJob(IExecutionContext jobContext, AgentJobRequestMessage message) in /Users/runner/work/1/s/src/Agent.Worker/JobExtension.cs:line 140
LucasRohr commented 2 weeks ago

I was just doing some research on the repo and I found out that the Flutter Build Task (which I also use) is using Node 10 as well, so I think all tasks with Node 10 should be updated to Node 20, not only the Install Task.

hey24sheep commented 4 days ago

@LucasRohr thanks for opening this issue. Please give me sometime and I will try to do it ASAP