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

Force no cache for single package source in nuget.config #8745

Open
bpaczkowski opened this issue Oct 24, 2019 · 4 comments
Open

Force no cache for single package source in nuget.config #8745

bpaczkowski opened this issue Oct 24, 2019 · 4 comments
Labels
Area:HttpCaching http caching by all tools Area:HttpCommunication Priority:2 Issues for the current backlog. Type:DCR Design Change Request
Milestone

Comments

@bpaczkowski
Copy link

bpaczkowski commented Oct 24, 2019

We're using package version wildcards for some of our internal libraries to make it easier to update them, but as it stands now, they wont get updated to the newest version (matching the wildcard) without the use of the no-cache operator, which also applies it to nuget.org package source. Ideally it would be if no-cache was applied to all wildcarded packages, but if I could apply it to a single package source (our internal one), this would suffice.

@heng-liu heng-liu added the Area:HttpCaching http caching by all tools label Oct 28, 2019
@heng-liu
Copy link
Contributor

Similar to #3116

@heng-liu heng-liu added the Type:DCR Design Change Request label Oct 28, 2019
@heng-liu heng-liu added this to the Backlog milestone Oct 28, 2019
@MV10
Copy link

MV10 commented Dec 7, 2019

When I'm creating or modifying a library, I will temporarily output the package to a local folder which is defined as a package source. Being able to turn off caching for that source would be a huge time-saver. Currently after rebuilding the library, I have to unload the solution that uses the package, manually delete the cached version, then re-open the solution to restore the package.

I was going to post a suggestion that local package sources shouldn't be cached at all (which is still probably a good idea), but more generally, having the option to disable caching per-source would be pretty useful.

I don't think that 3116 is related.

@MV10
Copy link

MV10 commented Dec 7, 2019

This does seem to be related: #6579

@MrAntix
Copy link

MrAntix commented Sep 1, 2022

could we have a no-cache flag in the nuget.config?

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
     <add key="local" value="../nuget" no-cache />
  </packageSources>
</configuration>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:HttpCaching http caching by all tools Area:HttpCommunication Priority:2 Issues for the current backlog. Type:DCR Design Change Request
Projects
None yet
Development

No branches or pull requests

5 participants