Skip to content

prefer ReleaseAsset DownloadFunc and add migration client coverage#36800

Open
lunny wants to merge 5 commits intogo-gitea:mainfrom
lunny:lunny/fix_giea_dump
Open

prefer ReleaseAsset DownloadFunc and add migration client coverage#36800
lunny wants to merge 5 commits intogo-gitea:mainfrom
lunny:lunny/fix_giea_dump

Conversation

@lunny
Copy link
Member

@lunny lunny commented Mar 2, 2026

  • Prefer DownloadFunc when exporting release assets; fall back to the migration-filtered HTTP client for DownloadURL, and error when neither is provided.
  • Add tests to verify DownloadFunc precedence and that DownloadURL uses the migration client to block disallowed domains.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 2, 2026
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Mar 2, 2026
Copy link
Contributor

@wxiaoguang wxiaoguang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have told you.

"httplib creates a new Client every request #6764"

@GiteaBot GiteaBot added lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/v1.25 lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged modifies/go Pull requests that update Go code type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants