Open RealGoodAnthony opened 2 years ago
It just occurred to me that I may have posted this in the wrong area (although it also applies to this repository!)
Cross-posting to the appropriate repository: https://github.com/Azure/azure-functions-core-tools/issues/2980
Hi @pragnagopa , Could you please look into this issue
Thanks for flagging this - will transfer to docker repo to triage
cc @TsuyoshiUshio @CooperLink for next steps
@TsuyoshiUshio - can you take a look at this?
cc @CooperLink
@pragnagopa Thanks! By the way, this is not necessarily related to docker. You can reproduce the same exact issue by attempting to build on bare metal. I just provided a Dockerfile to simplify reproducing the issue.
@fabiocav / @brettsam / @madelinegordon - can you please take a look? Looks like nuget package versions for the host were not updated?
Sorry to bug everyone, but I wanted to bump this @fabiocav @brettsam @madelinegordon @pragnagopa
When attempting to build version 4.0.3971 with
build.sh
, an error occurs:It appears that the culprit is
Microsoft.Azure.WebJobs.Script.WebHost
, version4.0.1
, which has somehow been updated to useMicrosoft.ApplicationInsights
version2.20.0
instead of2.18.0
. The major concern here is that this used to not be the case, and version4.0.1
may have been overriden with a force-push to the NuGet package repository.To me, this is very dangerous and concerning. Not only does it break this build, it goes against fundamental best practices that Nuget package versions should really be immutable.
Repro steps
Provide the steps required to reproduce the problem:
You may easily reproduce this issue with the following Dockerfile:
Workaround
Create a patch file named
0001-app-insights-2.20.0.diff
with the following contents:Update the Dockerfile: