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

cmd/go: "go get" doesn't work, but also doesn't produce errors #44825

Closed
jmarlow4 opened this issue Mar 5, 2021 · 2 comments
Closed

cmd/go: "go get" doesn't work, but also doesn't produce errors #44825

jmarlow4 opened this issue Mar 5, 2021 · 2 comments

Comments

@jmarlow4
Copy link

jmarlow4 commented Mar 5, 2021

Every time I run "go get" it doesn't actually put the package into the src folder of my go path. I've tried reinstalling go from homebrew and still nothing.

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

$ go version
1.16

Does this issue reproduce with the latest release?

Yes

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

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/jason/Library/Caches/go-build"
GOENV="/Users/jason/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/jason/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/jason/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/opt/go/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

What did you do?

Nothing... just coming back to try my hand at go development after a small hiatus.

What did you expect to see?

When I run go get, it puts the package in my GOPATH src folder

What did you see instead?

No package being downloaded to src

image

@dmitshur dmitshur added the GoCommand cmd/go label Mar 5, 2021
@dmitshur dmitshur changed the title "Go get" doesn't work, but also doesn't produce errors cmd/go: "go get" doesn't work, but also doesn't produce errors Mar 5, 2021
@dmitshur
Copy link
Contributor

dmitshur commented Mar 5, 2021

Nothing... just coming back to try my hand at go development after a small hiatus.

(Welcome back! 😄)

The go command is working as expected. Take a look at https://golang.org/doc/go1.16#go-command to understand the change you're seeing. I suggest also taking a look at https://golang.org/doc/tutorial/.

I'll close this since it's not a bug, but please feel free to use https://golang.org/wiki/Questions if you run into any questions.

@dmitshur dmitshur closed this as completed Mar 5, 2021
@icholy
Copy link

icholy commented Mar 5, 2021

@golang golang locked and limited conversation to collaborators Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants