Skip to content

Prevent homebrew from upgrading QEMU when installing Lima#87

Closed
jandubois wants to merge 1 commit into
lima-vm:masterfrom
jandubois:no-install-upgrade
Closed

Prevent homebrew from upgrading QEMU when installing Lima#87
jandubois wants to merge 1 commit into
lima-vm:masterfrom
jandubois:no-install-upgrade

Conversation

@jandubois
Copy link
Copy Markdown
Member

Trying to fix:

==> Installing dependencies for lima: qemu
(https://github.com/lima-vm/socket_vmnet/actions/runs/12017122983/job/33498771215#step:11:15)
Error: qemu is already installed from lima/tap!

Not sure why this only happened on master, but hopefully this will dissuade brew from installing a newer version of qemu.

Signed-off-by: Jan Dubois <jan.dubois@suse.com>
@jandubois
Copy link
Copy Markdown
Member Author

This doesn't seem to work. It also looks like brew is going to install an old version of Lima on macos-15 here:

==> Downloading https://ghcr.io/v2/homebrew/core/lima/manifests/0.23.2
==> Fetching dependencies for lima: qemu
==> Downloading https://ghcr.io/v2/homebrew/core/qemu/manifests/9.1.1

I have no time right now to further look into this; I would suggest to revert #63, which seems to have surfaced this issue.

@nirs If you want to try, you could remove installing the older qemu 9.0.1 version and see if the latest QEMU is still a problem. Or revert to building Lima from source (which would also solve the issue that brew seems to want to install 0.23.2 instead of 1.0.1).

Otherwise let me know if I should create a PR to revert #63!

@nirs
Copy link
Copy Markdown
Member

nirs commented Nov 25, 2024

Installing lima from source is too slow, this make it much harder to work on the CI. I already tested instaling lima 1.0.1 from brew on macos-15 and it worked.

I guess we did not test #63 properly. Lets revert it and do this change in smaller steps.

@nirs
Copy link
Copy Markdown
Member

nirs commented Nov 25, 2024

Actually when I tested on macos-15, lima was still building from source. The change to install from brew was tested on only macos-13-large and macos-14-large.

@nirs
Copy link
Copy Markdown
Member

nirs commented Nov 25, 2024

Turns that #63 was cancelled. We had to rerun it to see the issue.

Screenshot 2024-11-25 at 23 11 57

@jandubois
Copy link
Copy Markdown
Member Author

ets revert it and do this change in smaller steps.

I've filed #88 to revert it.

@jandubois jandubois closed this Nov 25, 2024
@jandubois jandubois deleted the no-install-upgrade branch November 25, 2024 21:23
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