Giter VIP home page Giter VIP logo

Comments (4)

Lilja avatar Lilja commented on July 22, 2024 1

@patrick-5546 mv grm_darwin_arm64.tar.gz grm in the install instruction, is that a correct way to untar a tar archive?

I installed it locally just fine:

lilja in ~/D/grm-test λ wget https://github.com/jsnjack/grm/releases/download/v0.54.1/grm_darwin_arm64.tar.gz
...<omitted>
grm_darwin_arm64.tar.gz                                   100%[=====================================================================================================================================>]   7.68M  43.8MB/s    in 0.2s

2024-04-22 12:08:59 (43.8 MB/s) - ‘grm_darwin_arm64.tar.gz’ saved [8052413/8052413]

lilja in ~/D/grm-test λ ls -l
total 15728
-rw-r--r--@ 1 lilja  staff  8052413 Sep  5  2023 grm_darwin_arm64.tar.gz
lilja in ~/D/grm-test λ tar -xf grm_darwin_arm64.tar.gz
lilja in ~/D/grm-test λ ls -l
total 45392
-rwxr-xr-x@ 1 lilja  staff  15185234 Sep  5  2023 grm*
-rw-r--r--@ 1 lilja  staff   8052413 Sep  5  2023 grm_darwin_arm64.tar.gz
lilja in ~/D/grm-test λ ./grm version
0.54.1
lilja in ~/D/grm-test λ

from grm.

jsnjack avatar jsnjack commented on July 22, 2024

Hi!

Weird, I don't have any macs myself, but I was told that it works! (checked today). Is there a chance you might have downloaded a binary for a different system / architecture? Or has it stopped working after update? 🤔

from grm.

patrick-5546 avatar patrick-5546 commented on July 22, 2024

I believe I downloaded the right binary, this is what I did:

$ curl -s https://api.github.com/repos/jsnjack/grm/releases/latest | jq -r '.assets[2].browser_download_url'                                 
https://github.com/jsnjack/grm/releases/download/v0.54.1/grm_darwin_arm64.tar.gz

$ curl -s https://api.github.com/repos/jsnjack/grm/releases/latest | jq -r '.assets[2].browser_download_url' | xargs curl -LOs && mv grm_darwin_arm64.tar.gz grm && chmod +x grm

$ ./grm version
zsh: exec format error: ./grm

I got the same error using the version where the arm build target was introduced: https://github.com/jsnjack/grm/releases/tag/v0.51.6. @Lilja was there anything else that you had to do to install grm on your m1 macbook pro?

I was able to build to build the arm target locally when I cloned the repository on my machine with make bin/grm_darwin_arm64, but get this error when running the tests

$ make test
cd cmd && go test
--- FAIL: TestInstall_filterSuitableAssets_empty_filter (0.00s)
    install_test.go:68: Unexpected amount of items in <output>: got 1 want 3
--- FAIL: TestInstall_filterSuitableAssets_extended_filter (0.00s)
    install_test.go:119: Expected hugo_extended_0.80.0_Linux-64bit.tar.gz to be in <output>
--- FAIL: TestInstall_filterSuitableAssets_extended_tar_filter (0.00s)
    install_test.go:165: Expected hugo_extended_0.80.0_Linux-64bit.tar.gz to be in <output>
--- FAIL: TestInstall_filterSuitableAssets_no_arm (0.00s)
    install_test.go:194: Expected go-mod-upgrade_0.9.0_Linux_x86_64.tar.gz to be in <output>
FAIL
exit status 1
FAIL	github.com/patrick-5546/grm/cmd	0.322s
make: *** [test] Error 1

The value of <output> on line 68 on my machine is [hugo_0.80.0_Linux-ARM64.tar.gz], not sure if this is relevant though

Any idea what might be happening?

from grm.

patrick-5546 avatar patrick-5546 commented on July 22, 2024

Thanks that worked, I don't know what I was thinking. I originally tried the grm binary in releases, but now see that is for linux amd64

from grm.

Related Issues (10)

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.