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

factor platform code into shared unit #984

Merged
merged 2 commits into from
May 2, 2024
Merged

factor platform code into shared unit #984

merged 2 commits into from
May 2, 2024

Conversation

Gankra
Copy link
Contributor

@Gankra Gankra commented May 1, 2024

This is a significantly reduced scope implementation of #793 that takes all the rich info and shoves it back into the shape of ExecutableZipFragment so all the installers can remain the same. However in doing so it introduces much better support for aliases and fallbacks, and centralizes the logic.

As a result several missing aliases are added, and fallback is much more maintainable.

@Gankra
Copy link
Contributor Author

Gankra commented May 1, 2024

This is draft because:

  • [ ] it's gonna get (minorly) merge-conflict by my npm refactor
  • it temporarily deletes the UpdaterFragment logic, because that predated the original branch and I didn't want to get bogged down.

@Gankra Gankra marked this pull request as ready for review May 1, 2024 23:42
This is a significantly reduced scope implementation of #793 that takes all the rich info
and shoves it back into the shape of ExecutableZipFragment so all the installers can remain the same.
However in doing so it introduces much better support for aliases and fallbacks, and centralizes the logic.

As a result several missing aliases are added, and fallback is much more maintainable.
@Gankra Gankra requested a review from mistydemeo May 2, 2024 15:20
Copy link
Contributor

@mistydemeo mistydemeo left a comment

Choose a reason for hiding this comment

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

Looking good, and I really appreciate the way this pushes so much of this logic into a central place. Just a few comments.

"{{ artifact.target_triples[0] }}")
echo '{{ aliases[artifact.target_triples[0]] | tojson }}'
"{{ artifact.target_triple }}")
echo '{{ aliases[artifact.target_triple] | tojson }}'
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a note that this needs to be rebased on #986 after that's merged.

@Gankra Gankra self-assigned this May 2, 2024
@Gankra Gankra merged commit a47ff79 into main May 2, 2024
15 checks passed
@Gankra Gankra deleted the platform-min branch May 2, 2024 17:11
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