GoogleCloudPlatform/functions-framework-dotnet

Private NuGet Feeds

JoelW16 opened this issue · 3 comments

Hey there,

I am trying to deploy a function that uses a library from a private NuGet feed. I have deployed the cloud function with a NuGet.Config file at the solution, project level, and everywhere mentioned here (Common NuGet configurations).
The deployment fails each time, with the logs showing it always attempting to pull the library from nuget.org. Are custom NuGet feeds supported?

Thanks

Custom feeds would need to be supported in the build pack. I don't know whether this (or the equivalent) is supported for any language at the moment.

Assigning to Matthew who can speak to this more and prioritize it appropriately. Sorry not to have a better answer for you at the moment.

This does sounds like a bug in the Buildpacks. I would expect that including the NuGet.Config at the solution directory would work. One thing to check is that it was actually included with the source code uploaded to Cloud Build (i.e. it wasn't included in your .gitignore or .gcloudignore).

@JoelW16 would you mind sharing a minimal sample that I could use reproduce the issue?

I'm going to close the issue here since it appears like this is mostly buildpack related. If you have examples, please refer them to GoogleCloudPlatform/buildpacks#171.

Feel free to reach out if you need any other help!