chocolatey / Chocolatey.Cake.Recipe

A set of convention based Cake scripts for building Chocolatey projects
Apache License 2.0
5 stars 9 forks source link

Don't overwrite NuGet.Config configuration when running restore #65

Closed gep13 closed 2 years ago

gep13 commented 2 years ago

Currently, if a NuGet.Config exists at the root of a repository, the script will use the sources defined in this file, and only these sources, when restoring packages. As a result, any machine level NuGet sources are not used.

This causes problems since there are times when we need to have packages restored from both internal sources, and also public sources, and also times when we need to control how NuGet works, without adding any specific sources.

We should switch to not looking at the project level NuGet.config file, and only using the default values (augmented via environment variables) or by overriding what sources should be used via the nuGetSource parameter which can be passed in via the SetParameters method.

choco-bot commented 2 years ago

:tada: This issue has been resolved in version 0.13.3 :tada:

The release is available on:

Your GitReleaseManager bot :package::rocket: