Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Add sudo chown -R vscode:vscode ${ANDROID_HOME} to android-cli #8

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

vorburger
Copy link
Contributor

@vorburger vorburger commented Jul 11, 2024

This should, hopefully, fix #7.

I HAVE NOT (!) tested this specific change - I'm not sure how I could "locally" test a dev container feature?

I HAVE however tested manually running sudo chown -R vscode:vscode /opt/android/ in a Codespace AFTER install, and it helps.

I don't know how to avoid hard-coding the vscode:vscode UID/GID in the chown... the install.sh script (clearly) runs as root; I'm not sure if Dev Containers have some ENV var which specifies "the UID/GID under which the workspace will eventually run"?

@akhildevelops would you be willing to merge this as-is? I can test it after you've merged it; great if it works, if it does not, we can revert it.

@jingtang10 FYI, this MAY fix google/android-fhir#2614.

@vorburger
Copy link
Contributor Author

I don't know how to avoid hard-coding the vscode:vscode UID/GID in the chown... the install.sh script (clearly) runs as root; I'm not sure if Dev Containers have some ENV var which specifies "the UID/GID under which the workspace will eventually run"?

I've briefly glanced over https://containers.dev/implementors/spec/, but cannot find anything. Let's just hard-code vscode:vscode then - no harm done.

@akhildevelops akhildevelops merged commit 35c8207 into akhildevelops:main Jul 11, 2024
6 checks passed
@akhildevelops
Copy link
Owner

@vorburger let me know if this pr need to be reverted after testing

@vorburger
Copy link
Contributor Author

@akhildevelops I've tested it, and it seem to work great! Thank You for merging this.

@vorburger vorburger mentioned this pull request Jul 12, 2024
@vorburger
Copy link
Contributor Author

Actually I spoke too soon - while I still think (hope) this will work, I think it would still need a release; see #9.

@okhiroyuki
Copy link

@vorburger @akhildevelops
With this change, it no longer works in codespace.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants