Giter Site home page Giter Site logo

Comments (10)

juev avatar juev commented on May 17, 2024

@jordevorstenbosch please provide information about your operation system and ARCH?

from gobrew.

kevincobain2000 avatar kevincobain2000 commented on May 17, 2024

Thanks @juev for the spot on ask there.

It seems like @jordevorstenbosch has an incorrect binary of gobrew, probably an OS or arch that we don't support yet

operation system and ARCH?

echo $(uname -s)
echo $(uname -m)

Would you please give the output of this?

from gobrew.

jordevorstenbosch avatar jordevorstenbosch commented on May 17, 2024

I'm running MacOS.

So
Darwin
x86_64

from gobrew.

kevincobain2000 avatar kevincobain2000 commented on May 17, 2024

Weird, I have the same and all good on my machine

from gobrew.

jordevorstenbosch avatar jordevorstenbosch commented on May 17, 2024

I have Go installed via homebrew, not sure if that matters for the Go install. Granted that doesn't explain the issue with the shell install.

Piped the script into bash and that did work. ( | bash - instead of | sh -)

Just checked with zsh, that also works. It seems to just be an issue with sh.

from gobrew.

kevincobain2000 avatar kevincobain2000 commented on May 17, 2024

Thanks for more info, it'd be helpful to debug if something is wrong with the | sh -. I'll try and find out the root cause.
Glad that it worked with | bash - tho

from gobrew.

jordevorstenbosch avatar jordevorstenbosch commented on May 17, 2024
/Users/jorde/.gobrew/bin/gobrew: line 1: 
: command not found
/Users/jorde/.gobrew/bin/gobrew: line 2: html: No such file or directory
/Users/jorde/.gobrew/bin/gobrew: line 3: head: No such file or directory
/Users/jorde/.gobrew/bin/gobrew: line 4: meta: No such file or directory
/Users/jorde/.gobrew/bin/gobrew: line 5: middot: command not found
/Users/jorde/.gobrew/bin/gobrew: line 5: title: No such file or directory
/Users/jorde/.gobrew/bin/gobrew: line 5: /title: No such file or directory
/Users/jorde/.gobrew/bin/gobrew: line 6: meta: No such file or directory
/Users/jorde/.gobrew/bin/gobrew: line 7: style: No such file or directory
/Users/jorde/.gobrew/bin/gobrew: line 8: body: command not found
/Users/jorde/.gobrew/bin/gobrew: line 9: background-color:: command not found
/Users/jorde/.gobrew/bin/gobrew: line 10: syntax error near unexpected token `('
/Users/jorde/.gobrew/bin/gobrew: line 10: `        color: rgba(0, 0, 0, 0.5);
'

Difference on my system between sh and bash:

sh --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin21)
Copyright (C) 2007 Free Software Foundation, Inc.
bash --version
GNU bash, version 5.1.16(1)-release (x86_64-apple-darwin21.1.0)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

If you need me to check something specific just let me know.

Also not entirely sure on what the - is supposed to do? Only thing I can find about that is 'treat as standard input/output'. But it seems to make no difference for bash/zsh.

Just checked with a colleague who doesn't have a newer version of bash installed separately. (Just the MacOS included one)

He gets the same script errors as I do. And interestingly enough doesn't get the error when piping it to bash - instead of sh -.

from gobrew.

kevincobain2000 avatar kevincobain2000 commented on May 17, 2024

Thanks for the details.

2 things here:

First:
If bash - is working well for you then I should replace it in the README since that is more robust.

Second:

The other way of course to install and debug will be like the following:

curl -L https://git.io/gobrew > gobrew.sh; chmod +x gobrew.sh
./gobrew.sh

Doing this way we can find out if it is the curl & sh - issue, or and issue with gobrew.sh

from gobrew.

jordevorstenbosch avatar jordevorstenbosch commented on May 17, 2024

Just using curl -L https://git.io/gobrew | sh already works fine.

curl -L https://git.io/gobrew > gobrew.sh; chmod +x gobrew.sh ./gobrew.sh works fine as well.

from gobrew.

kevincobain2000 avatar kevincobain2000 commented on May 17, 2024

I have removed the troubling - of sh -
#55

I am sorry I couldn't tell the root cause of why it has happened.

from gobrew.

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.