Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new golang.py mirror sync script intended to fetch Go release metadata from go.dev and download artifacts concurrently into a local working directory (tunasync-style).
Changes:
- Introduces
RemoteSite+GoReleasemodeling to enumerate Go release artifacts from go.dev. - Adds a threaded download worker queue with optional include/exclude filtering and SHA256 verification.
- Implements a local cleanup step to delete files not present in the computed upstream file list.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
taoky
reviewed
Mar 7, 2026
golang.py
Outdated
| def _fetch_releases(self): | ||
| """Fetch releases from the JSON API or HTML page.""" | ||
|
|
||
| # self._fetch_from_json() |
Contributor
There was a problem hiding this comment.
只从 JSON 获取 stable (supported) release 是有必要的,因为对于空间紧张的镜像站来说,很多时候不希望同步的仓库大小是无限增长的。另外对于只获取 stable release 的情况,可能还需要移除上游已经去除的文件。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a golang downloader, which retrieves all versions and download links from the golang official website https://go.dev/dl/ , and download them concurrently.