Skip to content

cmd/go: go get no longer creates $GOPATH/pkg dir in 1.10 #24360

Closed
@asottile

Description

@asottile

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

$ go version
go version go1.10 linux/amd64

Does this issue reproduce with the latest release?

Yes, 1.10 is currently the latest release

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

$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/asottile/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/tmp/test/gopath"
GORACE=""
GOROOT="/tmp/test/go"
GOTMPDIR=""
GOTOOLDIR="/tmp/test/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build899975321=/tmp/go-build -gno-record-gcc-switches"

What did you do?

rm -rf gopath
mkdir gopath
export GOPATH=$PWD/gopath
go get github.com/golang/example/hello
ls gopath

What did you expect to see?

...
$ ls gopath
bin pkg src

What did you see instead?

(for the other version of go I have installed (1.6.2) I see this)

$ ls gopath
bin  src

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions