vpm icon indicating copy to clipboard operation
vpm copied to clipboard

Need check for when repo is no longer available

Open Wajinn opened this issue 1 year ago • 3 comments

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

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

Version used

V 0.4.7

Environment details (OS name and version, etc.)

V full version: V 0.4.7

Wajinn avatar Sep 14 '24 06:09 Wajinn

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

medvednikov avatar Sep 14 '24 10:09 medvednikov

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.

JalonSolov avatar Sep 14 '24 20:09 JalonSolov

@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.

Wajinn avatar Sep 16 '24 18:09 Wajinn