alire icon indicating copy to clipboard operation
alire copied to clipboard

Alr 1.1.0-rc1, macOS, Big Sur issues: Quarantine and Outdated custom indexes cause misleading advice

Open simonjwright opened this issue 4 years ago • 6 comments

Summary (by Álex):

  • [ ] Executable must be put out of quarantine manually.
  • [x] Outdated custom indexes trigger useless advice (#809).

Original post follows.

Some installation problems ..

lockheed:~ simon$ which alr
/Users/simon/bin/alr
lockheed:~ simon$ alr toolchain
Killed: 9

... because it’s quarantined

lockheed:~ simon$ xattr bin/alr 
com.apple.quarantine
lockheed:~ simon$ xattr -d com.apple.quarantine bin/alr 

... quarantine removed

lockheed:~ simon$ alr toolchain
error: /Users/simon/.config/alire/indexes/community/repo: Mismatched branch in checked out community index:
error:    Expected branch 'devel-1.1' but found 'stable-1.0':
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.

... as instructed

lockheed:~ simon$ alr index --reset-community
Cloning into '/Users/simon/.config/alire/indexes/community/repo'...
remote: Enumerating objects: 5262, done.
remote: Counting objects: 100% (430/430), done.
remote: Compressing objects: 100% (252/252), done.
remote: Total 5262 (delta 178), reused 341 (delta 118), pack-reused 4832
Receiving objects: 100% (5262/5262), 847.08 KiB | 2.43 MiB/s, done.
Resolving deltas: 100% (3001/3001), done.

lockheed:~ simon$ alr toolchain
error: /Users/simon/Developer/alire-index/index/index.toml: index version (1.0.0) is older than that expected by alr (1.1.0). Please update your local index (alr index --update-all)

... as instructed

lockheed:~ simon$ alr index --update-all
Already up to date.

lockheed:~ simon$ alr toolchain
error: /Users/simon/Developer/alire-index/index/index.toml: index version (1.0.0) is older than that expected by alr (1.1.0). Please update your local index (alr index --update-all)

Moved the old ~/.config/alire; now all looks good.

simonjwright avatar Aug 19 '21 07:08 simonjwright