Comments (10)
I am seeing the same issue on M1. I must have had some hack in place because it only appeared since updating to zinit-continuum.
❯ uname -m
arm64
❯ arch -x86_64 uname -m
x86_64
from zinit.
Just FYI, lsd
has no ARM binary for Darwin.
Nor git-delta
Or bat
Or ripgrep
So not sure if that was part of the issue you raised.
That said, this has been fixed.
from zinit.
I think this is part of what @vladdoster was trying to fix in #171, although I am not sure about M1 specifically.
from zinit.
What does uname -m
report? (for Rosetta and native)
from zinit.
FYI
In some repos, the pre-build binary's name contains aarch64
instead of arm64
.
from zinit.
Just ran into the issue. I noticed that on a fresh mac, Zinit downloads the correct mac binaries. zinit update
seems to break/download the wrong versions.
from zinit.
@vladdoster pointed me to use the following snipped mentioned in the zinit wiki adding `bpick:"$bpick" afterward to all ices causes zinit to cause the right binary for me. For me, it's a viable solution until the proper fix is merged.
from zinit.
@docwhat Please see PR #201 for a PR to solve this issue.
Here is a snippet to set up zinit with the proper branch. If you end up testing it, please let me know any issues you encounter. I'll fix them before the changeset it merged.
#!/usr/bin/env zsh
#=== HELPER METHODS ===================================
function error() { print -P "%F{160}[ERROR] ---%f%b $1" >&2 && exit 1; }
function info() { print -P "%F{34}[INFO] ---%f%b $1"; }
#=== ZINIT ============================================
# GIT_REPO=$(git rev-parse --show-toplevel)/tests/_support/zinit
GIT_REPO=$(mktemp -d)/zinit
if [[ -d $GIT_REPO ]]; then
rm -rf $GIT_REPO
fi
typeset -gAH ZINIT;
ZINIT[HOME_DIR]=$GIT_REPO ZPFX=$ZINIT[HOME_DIR]/polaris
ZINIT[BIN_DIR]=$ZINIT[HOME_DIR]/zinit.git ZINIT[OPTIMIZE_OUT_DISK_ACCESSES]=1
ZINIT[COMPLETIONS_DIR]=$ZINIT[HOME_DIR]/completions ZINIT[SNIPPETS_DIR]=$ZINIT[HOME_DIR]/snippets
ZINIT[ZCOMPDUMP_PATH]=$ZINIT[HOME_DIR]/zcompdump ZINIT[PLUGINS_DIR]=$ZINIT[HOME_DIR]/plugins
ZI_REPO='zdharma-continuum'; GH_RAW_URL='https://raw.githubusercontent.com'
info 'Downloading Zinit' \
&& command git clone \
--branch 'refactor/zunit-tests' \
https://github.com/$ZI_REPO/zinit.git \
$ZINIT[BIN_DIR] \
|| error 'Unable to download zinit' \
&& info 'Installing Zinit' \
&& command chmod g-rwX $ZINIT[HOME_DIR] \
&& zcompile $ZINIT[BIN_DIR]/zinit.zsh \
&& info 'Successfully installed Zinit' \
|| error 'Unable to install Zinit'
source $ZINIT[BIN_DIR]/zinit.zsh \
&& autoload -Uz _zinit \
&& (( ${+_comps} )) \
&& _comps[zinit]=_zinit
#=== Add your plugins, snippets, etc. below
from zinit.
Cool. I don't have the time or brain spoons to look into this right now, but I subscribed to #201
from zinit.
FYI. You can get ARM build of ripgrep from microsoft/ripgrep-prebuilt..
from zinit.
Related Issues (20)
- [bug]: Often get database is locked HOT 3
- [bug]: zinit update does not pull stable release from GitHub releases HOT 3
- [bug]: zinit self-update fails with a git error due to conflicting branches HOT 2
- [bug]: `zinit update --parallel` leaves some zombie background process HOT 1
- [maint]: Re-add `--no-pager` option to `zinit self-update` HOT 1
- [bug]: Loading completion with `wait` doesn't work
- [bug]: Cannot load zsh-edit
- [bug]: multiple issues with new `make` ice
- [bug]: Error when using tab selection for auto-completion under `nvm use` command HOT 4
- [feat]: Allow specifying parts of a version HOT 1
- [bug]: compinit:527: no such file or directory: ~/.local/share/zinit/completions/_nvm HOT 3
- [bug]: kubectl not loading when zinit snippet OMZP::kubectl HOT 1
- [feat]: gitea support
- [bug]: compdef is not defined after loading zinit HOT 1
- [bug]: Some of snippets don't load unless .zshrc source manually HOT 1
- [bug]: Picks wrong atuin binary HOT 1
- [bug]: Github has dropped SVN Support HOT 2
- [bug]: docker compose completion does not work
- [maint]: missing lib function
- [bug]: `xdg-open` on Plasma 6 Wayland: `Invalid environment block`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zinit.