Cannot use '--build-native-deps' along with '--build' flag

Viewed 526

I'm getting the above error from an Azure DevOps pipeline while deploying python code to Azure functions. The pipeline was previously running without errors (last run 12 days ago). The task code is as follows;

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-get update
sudo apt-get install azure-functions-core-tools
func azure functionapp publish <app-name> --python --build-native-deps

The last line is throwing the error, but there is no "--build" flag specified, which is is confusing me. Any suggestions?

1 Answers

So seems there is a behavior change on the function core tools after version 2.7.1585-1. The deployment works by removing the "--build-native-deps" flag.

Related