Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go Get goes silent while not doing anything #41131

Closed
TennisBowling opened this issue Aug 30, 2020 · 7 comments
Closed

Go Get goes silent while not doing anything #41131

TennisBowling opened this issue Aug 30, 2020 · 7 comments

Comments

@TennisBowling
Copy link

@TennisBowling TennisBowling commented Aug 30, 2020

What version of Go are you using (go version)?

$ go version
go version go1.11.6 linux/arm

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="arm"
GOBIN=""
GOCACHE="/home/pi/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/pi/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/lib/go-1.11"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.11/pkg/tool/linux_arm"
GCCGO="gccgo"
GOARM="6"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build866718468=/tmp/go-build -gno-record-gcc-switches"

What did you do?

i did go get -u rsc.io/2fa, just as stated in the docs for https://github.com/rsc/2fa
go get just goes silent, no output, no install.

What did you expect to see?

be able run 2fa

What did you see instead?

command not found

@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Aug 30, 2020

Is /home/pi/go/bin on your PATH?

@TennisBowling
Copy link
Author

@TennisBowling TennisBowling commented Aug 30, 2020

no, will add. I installed go with apt-get, yet you can still run the command go somehow

@TennisBowling
Copy link
Author

@TennisBowling TennisBowling commented Aug 30, 2020

it seems that has gotten me further but now I have ":~ $ go get -u rsc.io/2fago

cd .; git clone https://github.com/rsc/2fago /home/pi/go/src/rsc.io/2fago

Cloning into '/home/pi/go/src/rsc.io/2fago'...
fatal: could not read Username for 'https://github.com': terminal prompts disabled
package rsc.io/2fago: exit status 128"

@TennisBowling
Copy link
Author

@TennisBowling TennisBowling commented Aug 30, 2020

this is probably nothing to do with go so I will close the issue

@TennisBowling
Copy link
Author

@TennisBowling TennisBowling commented Aug 30, 2020

ok so I added go's bin to my path, but now when I export the path it says:

export $PATH
-bash: export: `/home/pi/.nvm/versions/node/v14.2.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/local/go/bin': not a valid identifier

and go get goes silent again

@TennisBowling TennisBowling reopened this Aug 30, 2020
@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Aug 31, 2020

You have to write export PATH, not export $PATH. This doesn't have anything to do with Go, it's how Unix shells work.

@TennisBowling
Copy link
Author

@TennisBowling TennisBowling commented Aug 31, 2020

alright, let's re lets do export PATH. it went silent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.