bagetter / BaGetter

A lightweight NuGet and symbol server
https://www.bagetter.com
MIT License
269 stars 57 forks source link

Distinguish push'd packages and mirrored ones #187

Open RachelDavids opened 1 month ago

RachelDavids commented 1 month ago

Is your feature request related to a problem? Please describe.

I'm trying to clear out all mirrored packages to reduce the overhead on my hard disk From this point onwards only the latest packages would be added.

Describe the solution you'd like

A way to distinguish between explicitly pushed packages and those added via mirroring.

Describe alternatives you've considered

A manual process of elimination, by checking package ids on the mirror. (Nuget.org)

Additional context

Using SQL Server back-end does make searching for package detail easy, especially when wanting everything that does NOT match a given criteria. However, these is no easy way to find the packages I want to delete.

Regenhardt commented 1 month ago

We have multiple conversations about auto cleanup features. One of them would fit your use case: A setting that would limit the number of versions to keep for each mirrored package. That way, you could set that to a low number and automatically have older packages removed when newer ones are added. This might also include a flag indicating the origin of each package.

viceice commented 1 month ago

Yeah, would be nice to have a differrent value MaxVersionsPerPackage for mirror packages.

https://www.bagetter.com/docs/configuration#enable-package-auto-deletion