Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.94k stars 441 forks source link

Git version within the Powershell core of Azure Functions #5616

Open msornakumar opened 4 years ago

msornakumar commented 4 years ago

I am trying to use the Git command line commands from Azure functions Power shell core. The current Git version available inbuilt is below in the Windows when checked with "Git version" command.

git version 2.19.1.windows.1

Is there any way I can upgrade this to 2.23 ? Tried installing Chocolatey through Kudu Console to upgrade it which I am unable to do ? Any help or guidance on this is much appreciated.

soninaren commented 4 years ago

@Francisco-Gamino Do you know how can this be done. Or is this the version of git present on the worker?

Francisco-Gamino commented 4 years ago

Through the PowerShell worker, the user is able to interact with git.exe. However, the PowerShell worker does not install any versions of git.

@paulbatum and @fabiocav : what's the process/is it possible to update the git version available in Kudu console? The current version installed is git version 2.19.1.windows.1. The path to the exe is D:\Program Files\Git\cmd\git.exe

cc: @AnatoliB @anirudhgarg @eamonoreilly

AnatoliB commented 4 years ago

I believe git is xcopy-able, so it should be possible to zip a folder with git binaries, use Kudu to install the files to the file system (d:\home\data etc.), and invoke them from this location. This is how some users deploy Az CLI, for example. This will probably work with git as well.

paulbatum commented 4 years ago

I think we can follow up on getting git updated in App Service. It looks like 2.19.1 is from 2018 so it seems like an update is overdue. I'll see what I can find.