Skip to content

[release/3.16] 解决导出 Modrinth 整合包因大文件导致的 Out Of Memory - #6876

Merged
Glavo merged 1 commit into
HMCL-dev:release/3.16from
Glavo:backport/3.16/6631
Sep 16, 2026
Merged

Glavo merged 1 commit into
HMCL-dev:release/3.16from
Glavo:backport/3.16/6631

Conversation

@Glavo

@Glavo Glavo commented Sep 16, 2026

Copy link
Copy Markdown
Member

@Glavo

Glavo commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-16T13:34:03.754842Z 912705f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 912705f7a4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

int len;
while ((len = stream.read(buf, 0, buf.length)) != -1) {
/// Calculates the CurseForge fingerprint without retaining the filtered file in memory.
static long calculateFingerprint(Path file) throws IOException {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Declare the repository's non-null default

The enclosing CurseForgeRemoteAddonRepository is not annotated with @NotNullByDefault, so the new calculateFingerprint(Path) API leaves the nullability of file implicit to callers and nullness tooling. Add the required class-level annotation and explicitly mark any genuinely nullable members.

AGENTS.md reference: AGENTS.md:L7-L9

Useful? React with 👍 / 👎.

@Glavo
Glavo merged commit b8a830d into HMCL-dev:release/3.16 Sep 16, 2026
3 checks passed
@Glavo
Glavo deleted the backport/3.16/6631 branch September 16, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants