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)
| 369 | // |
| 370 | // Removing the "legacy." part results in a valid Codeload URL for our desired archive format. |
| 371 | func removeLegacyFromCodeloadPath(p string) string { |
| 372 | return codeloadLegacyRE.ReplaceAllString(p, "$1") |
| 373 | } |
| 374 | |
| 375 | var errSkipped = errors.New("skipped") |
| 376 |