Skip to content

Other switches might set changed as true. Use extraStrings size. #416#473

Merged
bors[bot] merged 1 commit intoNixOS:masterfrom
brenoguim:breno.416
Mar 7, 2023
Merged

Other switches might set changed as true. Use extraStrings size. #416#473
bors[bot] merged 1 commit intoNixOS:masterfrom
brenoguim:breno.416

Conversation

@brenoguim
Copy link
Copy Markdown
Collaborator

@brenoguim brenoguim commented Mar 4, 2023

I didn't realize that "changed" could be set by other switches before reaching the renaming function.
In this case, it tried to add zero strings and failed an assertion due to that.
Added a test that breaks without the fix.

RyanGibb added a commit to RyanGibb/nixos that referenced this pull request Mar 4, 2023
RyanGibb added a commit to RyanGibb/nixos that referenced this pull request Mar 4, 2023
@brenoguim brenoguim marked this pull request as ready for review March 4, 2023 17:05
@Mic92
Copy link
Copy Markdown
Member

Mic92 commented Mar 7, 2023

bors merge

@bors bors bot merged commit ea2fca7 into NixOS:master Mar 7, 2023
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.

2 participants