-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
Having Android emulator in PATH breaks colima qemu wrapper logic #316
Comments
Does the android sdk emulator directory include all qemu binaries? Does it also include |
@abiosoft It includes:
|
If this is the only concern, there is |
Yes, I know about it. But most of the packages that take up space are required for nix to run and a lot of them are copies of system utilities already available in macos. It would take 40gb of space for me and I kept running out of disk space on a daily basis. |
It becomes easier, we can easily check for |
A fix is underway, you can test with |
Kindly confirm if this is fixed |
I ran into a similar issue, and running |
Describe the Issue
When you have Android SDK installed using Android Studio or other methods and you manually add the
~/Library/Android/sdk/emulator/
to PATH, colima fails to start with an error:Version
Colima Version:
Lima Version:
0.11.0
Qemu Version
What is the output of
qemu-img --version
What is the output of
/usr/local/bin/qemu-img --version
Operating System
To Reproduce
Steps to reproduce the behavior:
~/Library/Android/sdk/emulator/
to PATHExpected behavior
Expect colima to prefer the qemu version installed from homebrew.
Additional context
I stumbled on this when migrating from the nix package manager back to homebrew, because nix would take up too much space. After installing colima from homebrew I got this error and was stuck on it for a few hours. Couldn't find any similar issues, so creating this one.
I tracked down the issue when looking through the code referencing the _wrapper directory colima creates for qemu. When searching for the share directory it looks up qemu from path on this line:
colima/daemon/process/gvproxy/deps.go
Line 76 in 3c03f80
I'd be happy to help with this, but I'm not sure what's the best solution here. Maybe detecting somehow that colima is installed from homebrew and looking up qemu only from /usr/local/bin or something like that?
Workaround
Delete android sdk emulator dir from PATH
The text was updated successfully, but these errors were encountered: