Coder Social home page Coder Social logo

Comments (10)

disrupted avatar disrupted commented on September 23, 2024 2

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.

@pschmitt

❯ uname -m
arm64
❯ arch -x86_64 uname -m
x86_64

from zinit.

vladdoster avatar vladdoster commented on September 23, 2024 2

Just FYI, lsd has no ARM binary for Darwin.

Screen Shot 2022-05-09 at 02 55 34

Nor git-delta

Screen Shot 2022-05-09 at 02 58 24

Or bat

Screen Shot 2022-05-09 at 02 59 31

Or ripgrep

Screen Shot 2022-05-09 at 03 00 31

So not sure if that was part of the issue you raised.

That said, this has been fixed.

from zinit.

AndrewDaws avatar AndrewDaws commented on September 23, 2024 1

I think this is part of what @vladdoster was trying to fix in #171, although I am not sure about M1 specifically.

from zinit.

pschmitt avatar pschmitt commented on September 23, 2024

What does uname -m report? (for Rosetta and native)

from zinit.

seagle0128 avatar seagle0128 commented on September 23, 2024

FYI

In some repos, the pre-build binary's name contains aarch64 instead of arm64.

from zinit.

omares avatar omares commented on September 23, 2024

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.

omares avatar omares commented on September 23, 2024

@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.

vladdoster avatar vladdoster commented on September 23, 2024

@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.

docwhat avatar docwhat commented on September 23, 2024

Cool. I don't have the time or brain spoons to look into this right now, but I subscribed to #201

from zinit.

seagle0128 avatar seagle0128 commented on September 23, 2024

FYI. You can get ARM build of ripgrep from microsoft/ripgrep-prebuilt..

from zinit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.