Comments (10)
@jordevorstenbosch please provide information about your operation system and ARCH?
from gobrew.
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.
I'm running MacOS.
So
Darwin
x86_64
from gobrew.
Weird, I have the same and all good on my machine
from gobrew.
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.
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.
/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.
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.
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.
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)
- Github rate limits HOT 2
- 404 error on Mac air laptop HOT 5
- homebrew package ? HOT 5
- add TELEMETRY HOT 2
- judgeVersion panic when GITHUB_TOKEN env is set to an invalid token HOT 1
- self-update with 403 code HOT 1
- RFC: `gobrew` interactive HOT 9
- does the GitHub action version work with window ? HOT 3
- Gobrew comparison bug HOT 1
- gobrew can't download package with only major version HOT 3
- It's not clear what version we are running gobrew with HOT 6
- `git.io.sh` could also set the PATH HOT 2
- Improve golang-tags.json HOT 7
- [feature requirement] can add mirror url for download go installation package? HOT 4
- Bug: Windows 10 Symlink required privilege HOT 2
- Add version to `install.sh` or `gobrew self-update` HOT 3
- `dev-latest` is not choosing `rc` version
- Support for Go workspaces HOT 6
- gobrew-windows-arm64.exe HOT 16
- 1.15.15 is missing ? HOT 7
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 gobrew.