cake icon indicating copy to clipboard operation
cake copied to clipboard

Install Addins, Tools, Modules to global packages folder

Open bjorkstromm opened this issue 3 years ago • 2 comments

To avoid unnecessary installation of packages already located in global packages folder (e.g. ~/.nuget), we should install and consume packages from there. We could make it opt-in to start with.

One problem I see is tool resolution. We'd probably need a way to register search paths for installed tools. Then tool installer could register the path for the installed tool, located in global packages folder.

Module resolution might be tricky one... 😄

bjorkstromm avatar Jul 12 '20 18:07 bjorkstromm

In my build setup I already use a global folder for tools, addins and modules. You can customize them with the cake command line args: -paths_tools -paths_addins -paths_modules

I just configure them as part of my build.ps1 bootstrapper.

EdinaLewis avatar Dec 17 '21 00:12 EdinaLewis

Thanks for the note @EdinaLewis but this issue is about Cake leveraging THE global folder that NuGet itself uses/manages when you install/restore packages through NuGet (e.g. dotnet restore), not a custom folder that you define yourself which, as you described, is supported already

augustoproiete avatar Dec 17 '21 18:12 augustoproiete