removeLegacyFromCodeloadPath converts URLs for "legacy" Codeload archives into ones that match the format when you choose to download "Source code (zip/tar.gz)" from a tagged release on the web. The legacy URLs look like this: https://codeload.github.com/OWNER/REPO/legacy.zip/refs/tags/TAGNAME Re
(p string)
| 333 | // |
| 334 | // Removing the "legacy." part results in a valid Codeload URL for our desired archive format. |
| 335 | func removeLegacyFromCodeloadPath(p string) string { |
| 336 | return codeloadLegacyRE.ReplaceAllString(p, "$1") |
| 337 | } |
| 338 | |
| 339 | var errSkipped = errors.New("skipped") |
| 340 |