-
Notifications
You must be signed in to change notification settings - Fork 525
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
Local paket.exe cache #1400
Local paket.exe cache #1400
Conversation
I'll update the docs later today. |
If it goes into nuget cache, then it will be cleaned with "paket clear-cache" |
It does not right now. Do you want it to be cached there? It seems to me these are 2 slightly different use cases, i.e. you may want clear the nuget cache, but at the same time you may want to retain paket.exe cache. |
In v3 we have our own cache folder. Maybe that would do
|
Alright, let me know how you want to proceed. |
I think @xavierzwirtz should talk a bit about the use case so that we can optimize for that. I don't really care of the cache location |
I am using paket on multiple projects, using the ProjectScaffold style build.cmd that auto updates paket. When I am working from a bandwidth constrained network, each project I build typically has to redownload the latest paket version. This can take upwards of ten minutes per. |
ok so it's "just" to optimize download speed on multiple projects. I think we should go with the nuget cache then. |
OK, last question. Are you fine with caching being the default or do you want to make it opt-in? |
I think it should always cache and only -f flag should skip the cache. That
|
👍 I think it's ready to roll. |
@xavierzwirtz can you please give it a try before I release it? |
Shouldn't the default be the other way around, like it now is? I vote for adding |
I meant the following:
|
@mexx, just like forki says. The latest version is always determined by what's on github/nuget, not by looking in the cache.
This is not currently implemented though and I'm not sure it's really that important to be honest :). |
You are right guys, I had a second look on the code, not only the PR changes, and it works as you describe. All fine. About the
I think it actually is, it would allow to build in a complete disconnected environment. |
Yes I think we should add this, too
|
I see your point. I'll check whether it would be possible to implement without redoing the work done so far. |
as I said: I think should take latest cached version when it can't connect 2016-01-18 18:09 GMT+01:00 Xavier Zwirtz notifications@github.com:
|
This is what I have now - if the online version check fails, but there is a newer version in the cache, we'll take that one. Unfortunately, as a side effect of the changes, you cannot downgrade from a prerelease version to the latest stable unless you specify the exact version. I don't yet know how to easily avoid this, so feel free to take a look if you can come up with something. |
awesome. Let's dogfood that thing for a while |
Implements #1398. @xavierzwirtz
Do we need some mechanism for cache clearing?