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
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@TennisBowling
Copy link

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

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

@ianlancetaylor ianlancetaylor added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Aug 30, 2020
@TennisBowling
Copy link
Author

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

@TennisBowling
Copy link
Author

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

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

@TennisBowling
Copy link
Author

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

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

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

@golang golang locked and limited conversation to collaborators Aug 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants