Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: standalone updater installation #1444

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Conversation

mistydemeo
Copy link
Contributor

@mistydemeo mistydemeo commented Oct 8, 2024

This was broken in a refactor in 19af853. That commit updated how we fetch platform-specific information, but it missed that the updater field in the new type is differently-shaped than the field from the new type. Specifically, the new archive we're working on has an updater field that's an index into a table of updaters intead of an updater struct - so trying to read its id and bin fields was doomed to failure.

The snapshots in #1346 actually exposed this problem, but both Aria and I missed it in review. We need to be more careful about this in the future.

Fixes #1443.

@mistydemeo mistydemeo force-pushed the fix-standalone-updaters branch 3 times, most recently from a20e9d1 to 3dde702 Compare October 8, 2024 19:51
This was broken in a refactor in 19af853.
That commit updated how we fetch platform-specific information, but it missed
that the `updater` field in the new type is differently-shaped than the field
from the new type. Specifically, the new `archive` we're working on has an
`updater` field that's an *index into a table of updaters* intead of an
*updater struct* - so trying to read its `id` and `bin` fields was doomed
to failure.

Fixes #1443.
@mistydemeo mistydemeo force-pushed the fix-standalone-updaters branch from 3dde702 to 3510d08 Compare October 8, 2024 20:17
@mistydemeo mistydemeo force-pushed the fix-standalone-updaters branch from 2f3ba33 to 8017bf6 Compare October 8, 2024 21:26
Copy link
Member

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

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

🚀

@mistydemeo mistydemeo merged commit 64fa3a8 into main Oct 8, 2024
16 checks passed
@mistydemeo mistydemeo deleted the fix-standalone-updaters branch October 8, 2024 21:51
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.

shell: Standalone updater installation has broken
2 participants