HMCL-dev / HMCL-dev/HMCL

[Bug] Modrinth 整合包导出未选中文件时导出范围错误

Open
#6,685 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
10.1k
Forks
934
Avg merge
1d 5h
Merged PRs (30d)
82

Description

问题描述 | Bug Description

在导出 Modrinth 整合包时,若不选择任何文件或文件夹,导出的整合包将包含不在黑名单内的所有文件。

Image
Archive:  /Volumes/Storage/temp/DHVK [1.21.11].mrpack
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  08-14-2026 18:33   client-overrides/
        0  08-14-2026 18:33   client-overrides/config/
    38774  08-14-2026 18:18   client-overrides/config/...
        0  08-14-2026 18:33   client-overrides/saves/
        0  08-14-2026 18:33   client-overrides/saves/...
  5569112  08-14-2026 18:17   client-overrides/natives-macos-arm64/...
        0  08-14-2026 18:33   client-overrides/mods/
  2426039  08-14-2026 17:57   client-overrides/mods/...
        0  08-14-2026 18:33   client-overrides/resourcepacks/
     4851  08-14-2026 18:18   client-overrides/options.txt
      212  08-14-2026 18:33   modrinth.index.json
启动器崩溃报告 / 启动器日志文件 | Launcher Crash Report / Launcher Log File

2026-08-14T18-33-15.log

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Modrinth export with no files or folders selected and inspect the attached launcher log, 2026-08-14T18-33-15.log. Trace the export flow to determine why unblacklisted files are included when the selection is empty. Done means an empty selection produces an archive without those files, while the reported Modrinth package structure remains valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.