question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Req] Possibility to specify a nupkg cache location

See original GitHub issue

This issue is to discuss a Twitter idea

Initial idea

https://twitter.com/CumpsD/status/680011065250443264 https://twitter.com/CumpsD/status/680011137853820930

Background story

Paket is great because it gives me repeatable builds with versions I specify. I can safely sleep at night knowing if my project builds today and collects dust for 5 years, it will still build with Paket.

However, I don’t always belief things to stay around forever, especially with central package repositories. Things happen. Who can guarantee the packages I use will be there 5 years from now? or 10 years? If I remember correctly, npm had this discussion once, which is why Proget and other proxies exist which cache packages so you keep them even if they are gone from the central place.

Idea

What if I could just tell Paket to store all nupkg files it downloads in a cache, of which I can specify the location. No need for proxy setups or anything, simply run paket, and have it store to a fileshare or something and that’s your “backup”. Later when restoring, Paket first checks your usual feeds, with the existing logic, and if it doesnt find anything (NuGet down, package removed?) it can fall back to your offline cache.

Clarification: This cache location should be possible to specify per invocation, so you can have different ones per repository for example. Cmdline argument or paket.dependencies option?

Discuss!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:6
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

4reactions
forkicommented, Mar 24, 2016

Nice error message:

whiskey

that said after looking at the code I think we could make the cache into sources. This would probably work

4reactions
forkicommented, Mar 24, 2016

Ok after node recent drama I think we shold make “additional caches” a thing.

I see two variants.

  1. We specify a network share and store all package versions
  2. we specify a folder inside the repo and store only the latest nupkgs
  • so you can commit that folder and still gitignore the packages folder
Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing the global packages, cache, and temp folders
Starting in Visual Studio 2017, use the Tools > NuGet Package Manager > Package Manager Settings menu command, then select Clear All NuGet...
Read more >
How can I clear the NuGet package cache using ...
First, download the NuGet command line tool from here. Next, open a command prompt and cd to the directory to which nuget.exe was...
Read more >
No Way to Control Order of Sources with nuget sources
I have a network path where I have cached numerous *.nupkg files (from ... but the ability to insert at the top is...
Read more >
Visual Studio does not recognize changed packages in . ...
When manually updating nuget packages in the nuget cache location (C:\Users\<username>\.nuget\packages) visual does not notice that the ...
Read more >
How to Use NuGet Packages: The Ultimate Guide
This article is a complete guide to configure, install, update, uninstall, and clear caches of NuGet packages in a Visual Studio project's ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found