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 SDK path issues with ubuntu-24.04 #409

Merged
merged 12 commits into from
Oct 11, 2024
Merged

Conversation

ychescale9
Copy link
Member

@ychescale9 ychescale9 commented Oct 10, 2024

Resolves #400

@ychescale9 ychescale9 changed the title Fix SDK path issues with updated action images Fix SDK path issues with ubuntu-24.04 Oct 11, 2024
Comment on lines 56 to 58
if (fs.existsSync(cmdlineToolsPath)) {
yield io.rmRF(cmdlineToolsPath);
}

Choose a reason for hiding this comment

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

This may be a simpler / better approach than #411 - but with 411 there is the possibility we skip the install if the runner image ever has the updated version. That may have value

However I see this nice io.rmRF call and that's better than I do in 411 - I was shelling out to rm things

// await exec.exec(`sh -c \\"sudo chown $USER:$USER ${process.env.ANDROID_HOME}/platform-tools -R`);
// await exec.exec(`sh -c \\"sudo chown $USER:$USER ${process.env.ANDROID_HOME}/cmdline-tools/latest -R`);
// await exec.exec(`sh -c \\"sudo chown $USER:$USER ${process.env.ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION} -R`);
// }

This comment was marked as resolved.

Comment on lines -22 to -26
if (!isOnMac) {
await exec.exec(`sh -c \\"sudo chown $USER:$USER ${process.env.ANDROID_HOME}/platform-tools -R`);
await exec.exec(`sh -c \\"sudo chown $USER:$USER ${process.env.ANDROID_HOME}/cmdline-tools/latest -R`);
await exec.exec(`sh -c \\"sudo chown $USER:$USER ${process.env.ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION} -R`);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Originally we needed to change the owner to accept preview SDK license: 49a3d04#diff-b14a072bf3d3c4d7027a549c57f0c1880f60206c24fc202ce4471ab9c0a5881cR23-R28

But this seems no longer required.

@ychescale9 ychescale9 merged commit 8c07710 into main Oct 11, 2024
7 checks passed
@ychescale9 ychescale9 deleted the yc/fix-sdk-path-issue branch October 11, 2024 00:55
ychescale9 added a commit that referenced this pull request Oct 12, 2024
* main:
  Prepare for release 2.33.0.
  Fix avd path on ubuntu-24.04 - attempt 2 (#415)
  Revert creating avd directory. (#414)
  Fix SDK path issues with ubuntu-24.04 (#409)
  SDK build tools 35.0.0, command-line tools 16.0. (#408)
  Avoid changing the owner of unnecessary files (#406)
  Update npm packages. (#401)
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.

Error on Ubuntu-24.04
2 participants