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

[scripts] Introduce scripts/fetch-toolchains.py #418

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

joshuaseaton
Copy link
Contributor

This change introduces $LK_ROOT/toolchains as an official installation directory for toolchains, as well as a new script for conveniently installing them there. getting_started.md is updated to suggest its use.

@joshuaseaton
Copy link
Contributor Author

What do you think of updating CI to use this as well?

@joshuaseaton joshuaseaton force-pushed the toolchain branch 2 times, most recently from e6b575a to 7b18ccf Compare August 11, 2024 06:37
@travisg
Copy link
Member

travisg commented Aug 12, 2024

What do you think of updating CI to use this as well?

I'd like to nak that, because the CI explicitly pulls down what versions it needs, and only exactly what it needs for a specific build. Also it uses the github cache action which saves it from pulling more than once for any given roll.

@joshuaseaton
Copy link
Contributor Author

Fair enough! The needs for CI are certainly different than for devs (e.g., around caching). (This was the classic tension on Fuchsia around sentiments and filed bugs that would amount to "can't you just use fx in automation??")

@travisg
Copy link
Member

travisg commented Aug 12, 2024

Looks like there's a problem, at least with --list, where it's finding the highest single digit one (ie, 8.2.0, etc) instead of a double digit (ie, 14)

@joshuaseaton
Copy link
Contributor Author

Ah, thanks for catching that. I was doing a naive strcmp on the version string, rather than a lexicographic comp on the actual int tokens. Fixed

This change introduces $LK_ROOT/toolchain as an official installation
directory for toolchains, as well as a new script for conveniently
installing them there (versus manual GETs + untarring).

getting_started.md is updated to suggest its use.
Copy link
Member

@travisg travisg left a comment

Choose a reason for hiding this comment

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

Looks good, seems to work fine here on ubuntu 24.04 and mac with python 3.12. It may not work right on older pythons, but i'm not particularly worried about that right now unless it becomes a problem.

@travisg travisg merged commit 1b2c449 into littlekernel:master Aug 12, 2024
189 checks 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