alire icon indicating copy to clipboard operation
alire copied to clipboard

Error encountered when installing a crate: "Mismatched branch in checked out community index"

Open ajxs opened this issue 2 years ago • 4 comments

Hello, After installing Alire on Ubuntu 18.04, and setting up a project, I get the following error when attempting to install a dependency:

ajxs@ubu:~/src/test_project$ alr with xmlada
error: /home/ajxs/.config/alire/indexes/community/repo: Mismatched branch in checked out community index:
error:    Expected branch 'stable-1.1' but found 'stable-1.1':
error:    If you have updated alr, you may need to reset  the community index with 'alr index --reset-community':
error:    Note that this operation will delete any local changes to the community index.

After running the suggested command to reset the community index, I get the same error. The error persists even when using other commands like show, or build. Is there something simple I've missed? Any help would be greatly appreciated.

ajxs avatar Mar 05 '22 01:03 ajxs

Try to remove the community directory and reset community index

jquorning avatar Mar 05 '22 13:03 jquorning

Unfortunately this does not resolve the issue. I get the exact same result after removing the community directory, and resetting the community index.

ajxs avatar Mar 06 '22 04:03 ajxs

It looks related to #796

jquorning avatar Mar 06 '22 23:03 jquorning

I did see this issue before I raised mine. I'm not so sure. I'm not using MacOS, and this is the first thing I've ever done with Alire. All of this is occurring on a fresh install.

ajxs avatar Mar 06 '22 23:03 ajxs