CRASH: shadow tc4recipelib 后 @Mod 仍 required-after TC4Tweaks,无 Tweaks 时可能拒载 #1

Closed
opened 2026-11-15 15:58:42 +00:00 by layue13 · 2 comments
Owner

调研编号:

现象

上游 dependencies 把 tc4recipelib 当 api;注入 handler 直接调用 net.glease.tc4tweak.api。TDLM patches/0001 改为 shadowImplementation 并 usesShadowedDependencies=true(relocate/minimize=false),但 AspectRecipeIndex.DEPENDENCIES 仍含 required-after:TC4Tweaks|API|InfusionRecipeLib。

危害类与优先级

  • 危害类:CRASH → 标签 type/defect
  • 优先级:p1(TDLM 不带 TC4Tweaks;出货依赖 shadow 补丁,但依赖字符串未改,可能进游戏前拒载)

证据(生效源码)

  • 载体:TDLM/AspectRecipeIndex + 分支 origin/master + pin/commit 315f8c7e746d209655f1e6a2f0a97790d424dfea(submodule upstream)
  • 位置:src/main/java/com/gtnewhorizons/aspectrecipeindex/AspectRecipeIndex.java:29-32
  • 关键原文:
public static final String DEPENDENCIES = "required-after:Thaumcraft;" + "required-after:gtnhmixins;"
        + "required-after:gtnhlib;"
        + "required-after:TC4Tweaks|API|InfusionRecipeLib;"
  • applied 树路径:补丁层 patches/0001-build-embed-tc4recipelib-so-AspectRecipeIndex-runs-w.patch 已改 dependencies.gradle/gradle.properties,未改 DEPENDENCIES;work/ 扫描时不存在
  • 上游状态:未修

触发与复现

  • 触发条件:不装 TC4Tweaks 加载 AspectRecipeIndex(TDLM 目标形态)。
  • 静态推演:补丁未改 DEPENDENCIES;若 recipelib 1.5.39 无 @Mod(modid=InfusionRecipeLib|API|TC4Tweaks),FML 依赖检查可能失败。
  • 未验证(仅形状相同——此时本 issue 是候选)
  • 包内相关性:模块 AspectRecipeIndex/sides client,server/默认配置可达:是(出货必经)

落点

  • 主仓:TDLM/AspectRecipeIndex → AspectRecipeIndex.java:29;patches/0001;并核 tc4recipelib 1.5.39 的 @Mod/mixin
  • 协同:需读 net.glease:tc4recipelib:1.5.39 的 mcmod.info/@Mod;relocate=false 时同包名会抢类。

范式

  • 命中范式:(无对应范式)
  • 无对应范式条目;出货兼容面按 type/defect 记账。链接 C2 仅作邻近参考。

引证

  1. 不可点开:源在 submodule upstream@315f8c7e746d209655f1e6a2f0a97790d424dfea;mirror 可点开 —
    public static final String DEPENDENCIES = "required-after:Thaumcraft;" + "required-after:gtnhmixins;"
    + "required-after:gtnhlib;"
    + "required-after:TC4Tweaks|API|InfusionRecipeLib;"
    + "after:Automagy";
  2. 补丁 — TDLM/AspectRecipeIndex patches/0001(layer commit 对照本地)

来源

  • 线索类型:内部代码审查(无外部报障)
  • 可解析指针:upstream@315f8c7e746d / src/main/java/com/gtnewhorizons/aspectrecipeindex/AspectRecipeIndex.java:29-32
  • 来源标签:origin/scan
**调研编号**: ## 现象 上游 dependencies 把 tc4recipelib 当 api;注入 handler 直接调用 net.glease.tc4tweak.api。TDLM patches/0001 改为 shadowImplementation 并 usesShadowedDependencies=true(relocate/minimize=false),但 AspectRecipeIndex.DEPENDENCIES 仍含 required-after:TC4Tweaks|API|InfusionRecipeLib。 ## 危害类与优先级 - 危害类:`CRASH` → 标签 `type/defect` - 优先级:`p1`(TDLM 不带 TC4Tweaks;出货依赖 shadow 补丁,但依赖字符串未改,可能进游戏前拒载) ## 证据(生效源码) - 载体:`TDLM/AspectRecipeIndex` + 分支 `origin/master` + pin/commit `315f8c7e746d209655f1e6a2f0a97790d424dfea`(submodule upstream) - 位置:`src/main/java/com/gtnewhorizons/aspectrecipeindex/AspectRecipeIndex.java:29-32` - 关键原文: ```java public static final String DEPENDENCIES = "required-after:Thaumcraft;" + "required-after:gtnhmixins;" + "required-after:gtnhlib;" + "required-after:TC4Tweaks|API|InfusionRecipeLib;" ``` - applied 树路径:补丁层 patches/0001-build-embed-tc4recipelib-so-AspectRecipeIndex-runs-w.patch 已改 dependencies.gradle/gradle.properties,未改 DEPENDENCIES;work/ 扫描时不存在 - 上游状态:未修 ## 触发与复现 - 触发条件:不装 TC4Tweaks 加载 AspectRecipeIndex(TDLM 目标形态)。 - 静态推演:补丁未改 DEPENDENCIES;若 recipelib 1.5.39 无 @Mod(modid=InfusionRecipeLib|API|TC4Tweaks),FML 依赖检查可能失败。 - 未验证(仅形状相同——此时本 issue 是候选) - 包内相关性:模块 `AspectRecipeIndex`/sides `client,server`/默认配置可达:是(出货必经) ## 落点 - 主仓:`TDLM/AspectRecipeIndex` → `AspectRecipeIndex.java:29;patches/0001;并核 tc4recipelib 1.5.39 的 @Mod/mixin` - 协同:需读 net.glease:tc4recipelib:1.5.39 的 mcmod.info/@Mod;relocate=false 时同包名会抢类。 ## 范式 - 命中范式:[(无对应范式)](https://git.potatolab.uk/TDLM/mc-defect-patterns/src/commit/5c71fe760eaf11509476cc892da1e76ad0912b46/crash/C2-%E7%AB%AF%E9%9A%94%E7%A6%BB%E4%B8%8E%E5%85%BC%E5%AE%B9.md) - 无对应范式条目;出货兼容面按 type/defect 记账。链接 C2 仅作邻近参考。 ## 引证 1. 不可点开:源在 submodule upstream@315f8c7e746d209655f1e6a2f0a97790d424dfea;mirror 可点开 — https://git.nest.potatolab.uk:8443/upstream/AspectRecipeIndex/src/commit/315f8c7e746d209655f1e6a2f0a97790d424dfea/src/main/java/com/gtnewhorizons/aspectrecipeindex/AspectRecipeIndex.java#L29-L32 2. 补丁 — TDLM/AspectRecipeIndex patches/0001(layer commit 对照本地) ## 来源 - 线索类型:内部代码审查(无外部报障) - 可解析指针:upstream@315f8c7e746d / src/main/java/com/gtnewhorizons/aspectrecipeindex/AspectRecipeIndex.java:29-32 - 来源标签:origin/scan
layue13 added the area/compatibilityarea/buildorigin/scan
priority
p1
type
defect
labels 2026-11-15 15:58:42 +00:00
layue13 added the
resolution
fixed
label 2026-11-15 16:26:49 +00:00
Author
Owner

已修:patches/0002 去掉 required-after:TC4Tweaks|API|InfusionRecipeLib(tc4recipelib 已 shadow)。layer commit 1f348a0。

已修:patches/0002 去掉 required-after:TC4Tweaks|API|InfusionRecipeLib(tc4recipelib 已 shadow)。layer commit 1f348a0。
Author
Owner

已修:patches/0002 去掉 required-after:TC4Tweaks|API|InfusionRecipeLib(tc4recipelib 已 shadow)。layer commit 1f348a0。

已修:patches/0002 去掉 required-after:TC4Tweaks|API|InfusionRecipeLib(tc4recipelib 已 shadow)。layer commit 1f348a0。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TDLM/AspectRecipeIndex#1