Skip to content

Fix GTNH versions.json parsing#4146

Merged
itzg merged 1 commit into
itzg:masterfrom
davidgaag:fix/gtnh-versions-json
Jul 6, 2026
Merged

Fix GTNH versions.json parsing#4146
itzg merged 1 commit into
itzg:masterfrom
davidgaag:fix/gtnh-versions-json

Conversation

@davidgaag

@davidgaag davidgaag commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

GTNH's versions.json file does not have a top level versions key (e.g. { "versions": { ... } }), or at least not that I can see in the current version or revision history here.

However, the current script assumes it does.

This change uses (.versions // .) for the parsing so both formats are supported.

Fixes #4145

@itzg

itzg commented Jul 6, 2026

Copy link
Copy Markdown
Owner

cc @SgtMate

@itzg itzg left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks. Agreed that it sure doesn't seem like versions was a top level field. Likewise this script to have been this way for a while.

I'll merge to get this going but have @SgtMate follow up.

@itzg itzg merged commit 32b026d into itzg:master Jul 6, 2026
6 checks passed
@SgtMate

SgtMate commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Interesting... so in the past there was a versions key. But it seems there have been changes made. Good catch.

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.

GTNH Version History fails to parse

3 participants