Forge 1.12.2 build失败

地铁DXTL


环境:GitHub的Action(ubuntu-latest)
以下是报错信息

* What went wrong:
Execution failed for task ':applyBinaryPatches'.
> There is a binary discrepency between the expected input class net.minecraft.client.renderer.entity.layers.LayerHeldItem (ccc) and the actual class. Checksum on disk is 5f7c661a, in patch da0f6687. Things are probably about to go very wrong. Did you put something into the jar file?

以下是Action脚本

name: Build

on: [push, pull_request]

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1

    - name: Permission allowing
      run: chmod +x ./gradlew

    - name: Set up JDK 1.8
      uses: actions/[email protected]
      with:
        java-version: 1.8

    - name: Cache gradle dependencies
      uses: actions/cache@v1
      with:
        path: ~/.gradle/caches
        key: ${{ runner.os }}-gradle-${{ hashFiles('gradle.properties') }}
        restore-keys: |
          ${{ runner.os }}-gradle-

    - name: Build with Gradle
      run: ./gradlew build

    - name: Upload Jar
      uses: actions/upload-artifact@v1
      with:
        name: Minecraft-Mod-Better-Cat-newest
        path: build/libs

在执行上一个任务时,仍然有报错,但GitHub却通过了这个流程


FledgeXu


对不起,Github Action 我也没有用过。
不过我找到了一个issues 你可以参考一下。


地铁DXTL


好吧,看来GitHub的Action似乎有某些奇怪的问题,我不打算用了…反正我本地能build过就行了,谢谢!


epix


现在我这个1.12.2的有build的actions看起来工作正常, 看起来只是少了cache那一步?


地铁DXTL


我又试了几次,依然是失败在这里真是不知道为什么…FG有毒》》》


epix


更新forge版本以后好了



地铁DXTL


谢谢!终于好了QAQ


system


该主题在最后一个回复创建后7天后自动关闭。不再允许新的回复。