Skip to content

fix(fabric-api): download runtime JAR from GitHub Releases - #142

Merged
okafke merged 1 commit into
mainfrom
fix/fabric-api-release-download
Jul 15, 2026
Merged

fix(fabric-api): download runtime JAR from GitHub Releases#142
okafke merged 1 commit into
mainfrom
fix/fabric-api-release-download

Conversation

@ChipWolf

@ChipWolf ChipWolf commented Jul 14, 2026

Copy link
Copy Markdown
Member

The fabric-api input downloaded the top-level JAR from Fabric's Maven repo. For some older releases that JAR is a thin aggregator with no bundled submodules, so mods depending on Fabric API submodules crash at runtime (e.g. NoClassDefFoundError for fabric-networking-api-v1).

Example: Maven 0.77.0+1.18.2 is 4,877 bytes with 0 nested modules, while the GitHub Release JAR is 1.47 MB with 45. Fabric fixed this in the 1.19.2 branch but never backported it, so it only breaks on older versions.

This switches the download to robinraju/release-downloader, pulling fabric-api-<version>+<mc>.jar from FabricMC/fabric-api releases. The release asset is the full distribution for both old and new versions.

Note: the source moves from Fabric's Maven CDN to the GitHub release API. release-downloader uses GITHUB_TOKEN, so rate limits shouldn't bite in normal CI.

Closes #141

The `fabric-api` input downloaded the top-level Maven artifact, which for
some legacy releases (e.g. 0.77.0+1.18.2) is a thin aggregator JAR with no
nested runtime submodules. Mods depending on Fabric API submodules then
failed at runtime with NoClassDefFoundError.

Use robinraju/release-downloader to fetch the official
`fabric-api-<version>+<mc>.jar` asset from FabricMC/fabric-api releases,
which is the complete end-user distribution for both legacy and modern
publications.

Closes #141
@okafke
okafke self-requested a review July 15, 2026 18:29
@okafke
okafke merged commit 409cd79 into main Jul 15, 2026
7 checks passed
@okafke
okafke deleted the fix/fabric-api-release-download branch July 15, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fabric-api input downloads a thin Maven artifact for legacy Fabric API releases

2 participants