vlang / vpm

V's package manager
https://vpm.vlang.io
GNU General Public License v3.0
115 stars 29 forks source link

Need check for when repo is no longer available #124

Open Wajinn opened 1 week ago

Wajinn commented 1 week ago

Describe the feature

Should be doing periodic check to see if listed repo is still available. At least once a week check, though once a day would be preferable.

Use Case

To avoid attempting to download repos that are no longer available.

Proposed Solution

Conduct periodic checks to make sure repo is not 404 or private.

Other Information

Example of this problem is https://vpm.vlang.io/packages/lv37.utils. Clicking on link to repo displays 404. However, VPM site shows lv37's Utility functions for V as 2nd most downloaded. This can cause disappointment for new users seeking it out.

Acknowledgements

Version used

V 0.4.7

Environment details (OS name and version, etc.)

V full version: V 0.4.7

medvednikov commented 1 week ago

I think VPM should do backups via git clone + periodic git pulls.

JalonSolov commented 1 week ago

Or use the github webhook if possible, so it can back things up when they're changed, instead of wasting time with periodic git pull if they haven't been updated in a long time.

Wajinn commented 5 days ago

@medvednikov and @JalonSolov Whichever way works best. Thanks. Just wanted to remind that newbies and casuals are going to visit the VPM site and likely click links. If things like no stars or broken links are present, it may not be given the benefit of the doubt (because of project's age) or it may sway overall opinions.