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

GOPATH/bin directory is empty #39277

Closed
tianyirenjian opened this issue May 27, 2020 · 4 comments
Closed

GOPATH/bin directory is empty #39277

tianyirenjian opened this issue May 27, 2020 · 4 comments

Comments

@tianyirenjian
Copy link

@tianyirenjian tianyirenjian commented May 27, 2020

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

$ go version
go version go1.14.3 windows/386

Does this issue reproduce with the latest release?

Always.

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

go env Output
$ go env
set GO111MODULE=
set GOARCH=386
set GOBIN=
set GOCACHE=C:\Users\tianyi\AppData\Local\go-build
set GOENV=C:\Users\tianyi\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=E:\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=D:\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\Go\pkg\tool\windows_386
set GCCGO=gccgo
set GO386=sse2
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m32 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\tianyi\AppData\Local\Temp\go-build574742406=/tmp/go-build -gno-record-gcc-switches

What did you do?

My GOPATH/bin directory is empty. For example, I install github.com/go-bindata/go-bindata it says I can run go-bindata.exe, the executable file is not exists。Other package has the same problem.

What did you expect to see?

GOPATH/bin should have go-bindata.exe and orther executable files.
My company computer has those files, but my home computer doesn't have.

What did you see instead?

I see nothing.

@rsc
Copy link
Contributor

@rsc rsc commented May 27, 2020

Please send the output of

go install github.com/go-bindata/go-bindata
go list -f {{.Target}} github.com/go-bindata/go-bindata

Thanks.

@andybons andybons added this to the Unplanned milestone May 27, 2020
@andybons andybons added the OS-Windows label May 27, 2020
@tianyirenjian
Copy link
Author

@tianyirenjian tianyirenjian commented May 27, 2020

λ go install github.com/go-bindata/go-bindata
go: downloading github.com/go-bindata/go-bindata v3.1.2+incompatible

λ go list -f {{.Target}} github.com/go-bindata/go-bindata # shows nothing.
@fsouza
Copy link
Contributor

@fsouza fsouza commented May 27, 2020

You need to install the main package (go install github.com/go-bindata/go-bindata/go-bindata).

@tianyirenjian
Copy link
Author

@tianyirenjian tianyirenjian commented May 28, 2020

It works!
I have to install with go get github.com/go-bindata/go-bindata/..., there are three . behind the command.

Thank you.

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
4 participants
You can’t perform that action at this time.