Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Addins, Tools, Modules to global packages folder #2830

Open
bjorkstromm opened this issue Jul 12, 2020 · 2 comments
Open

Install Addins, Tools, Modules to global packages folder #2830

bjorkstromm opened this issue Jul 12, 2020 · 2 comments

Comments

@bjorkstromm
Copy link
Member

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... 😄

@pascalberger pascalberger added this to the v2.0.0 milestone Oct 16, 2020
@pascalberger pascalberger added this to To do in 2.0.0 via automation Dec 28, 2020
@pascalberger pascalberger removed this from To do in 2.0.0 Oct 9, 2021
@EdinaLewis
Copy link

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.

@augustoproiete
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants