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(ubuntu): verify command line tools is the version we want #411

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikehardy
Copy link

@mikehardy mikehardy commented Oct 11, 2024

Per discussion with @ychescale9 - optionally update the cmdline-tools package if it is not the correct version

Right now there is a difference in the sdkmanager XML versions distributed by servers (v4) and handled by ubuntu-24 runner image pre-installed cmdline-tools sdkmanager (only handles v3), so this is already a problem, and for that reason I set the default to "true" - correctness over performance

But people can toggle it off if they want

@mikehardy
Copy link
Author

mikehardy commented Oct 11, 2024

This quieted down the sdkmanager errors related to XML version 4 being seen but tools only supporting up to version 3

the directory merely existing is not sufficient to say command
line tools will work, it may be an old version

get the version and explicitly check it, remove it so fresh
install will happen if it is not the desired version
@mikehardy mikehardy force-pushed the ubuntu-24-cmdline-tools-latest branch from 374532f to dc3c93b Compare October 13, 2024 18:11
@mikehardy
Copy link
Author

I updated this to main and made it so you can disable it with an input boolean, but I believe it is already causing a correctness issue so I left it as default true (correctness >> performance). Ready for review and either adoption or we can close if not interested @ychescale9

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.

1 participant