Skip to content

fixup: unset driverNames reference before building vendor columns#376

Merged
MightyCreak merged 1 commit into
MightyCreak:mainfrom
carsongoodwin32:fix/vendor-column-reference-bug
Jul 3, 2026
Merged

fixup: unset driverNames reference before building vendor columns#376
MightyCreak merged 1 commit into
MightyCreak:mainfrom
carsongoodwin32:fix/vendor-column-reference-bug

Conversation

@carsongoodwin32

Copy link
Copy Markdown
Contributor

The current version of MesaMatrix has a bug in the column generation code that affects all generated tables on the site. I noticed this when trying to look for new KosmicKrisp features, which had been overwritten with a second lavapipe column.

The createColumns() loop left $driverNames as a reference to the last vendor, causing the second foreach to overwrite anything in the last column with the previous data.

This is a one line change that I've confirmed locally to fix the issue. Please let me know if you have any questions.

@MightyCreak

Copy link
Copy Markdown
Owner

I remember deleting this line because I couldn't see what was its purpose... and I still don't see it. I don't understand why the second foreach doesn't override this variable...

@MightyCreak

Copy link
Copy Markdown
Owner

Oh... I see. driverNames is a reference, and the next foreach doesn't reassign the variable, it reassigns the ref 🤦

@MightyCreak
MightyCreak merged commit 2514b1b into MightyCreak:main Jul 3, 2026
1 check passed
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