Skip to content

Fix mod content installers. - #21508

Merged
PunkPun merged 1 commit into
OpenRA:bleedfrom
RoosterDragon:fix-installer-yaml
Aug 3, 2024
Merged

PunkPun merged 1 commit into
OpenRA:bleedfrom
RoosterDragon:fix-installer-yaml

Conversation

@RoosterDragon

Copy link
Copy Markdown
Member

In #21462 MiniYaml merging was adjusted. One effect of this change was that duplicate keys in files that did not previously require merging was previously allowed, but was now an error. (Test case TestMergeConflictsNoMerge)

The installer files were relying on the previous behaviour to allow multiple ContentPackage keys. The above change caused a regression where attempting to manage mod content would crash due to now erroring on the duplicate keys.

We fix the issue by applying a unique ID suffix, as is a common pattern elsewhere in our yaml files, and teach InstallFromSourceLogic to recognise and strip it.

Fixes #21505

In 4312a4d MiniYaml merging was adjusted. One effect of this change was that duplicate keys in files that did not previously require merging was previously allowed, but was now an error. (Test case `TestMergeConflictsNoMerge`)

The installer files were relying on the previous behaviour to allow multiple `ContentPackage` keys. The above change caused a regression where attempting to manage mod content would crash due to now erroring on the duplicate keys.

We fix the issue by applying a unique ID suffix, as is a common pattern elsewhere in our yaml files, and teach InstallFromSourceLogic to recognise and strip it.

@PunkPun PunkPun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, tested steam content installation

@PunkPun
PunkPun merged commit 578a9fe into OpenRA:bleed Aug 3, 2024
@RoosterDragon
RoosterDragon deleted the fix-installer-yaml branch August 3, 2024 09:10
@PunkPun

PunkPun commented Aug 3, 2024

Copy link
Copy Markdown
Member

changelog

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.

Accessing the content installer mod crashes on bleed

2 participants