-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Description
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version
)?
go version go1.8.1 windows/amd64
What operating system and processor architecture are you using (go env
)?
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\shellus\go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\shellus\AppData\Local\Temp\go-build143925707=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
set PKG_CONFIG=pkg-config
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
GOROOT is C:\Go GOPATH is not seting (I think it will use the default {user}/go)
C:\Users\shellus\go>tree
├─bin
├─pkg
│ └─windows_amd64
│ └─github.com
│ ├─akavel
│ │ └─rsrc
│ ├─AllenDang
│ ├─Knetic
│ └─lxn
│ └─walk
└─src
└─github.com
├─akavel
│ └─rsrc
│ ├─binutil
│ ├─coff
│ └─ico
├─AllenDang
│ └─w32
├─Knetic
│ └─govaluate
└─lxn
├─walk
│ ├─data
│ ├─declarative
│ ├─examples
│ │ ├─actions
│ │ ├─clipboard
│ │ ├─databinding
│ │ ├─drawing
│ │ ├─dropfiles
│ │ ├─externalwidgets
│ │ ├─filebrowser
│ │ ├─gradientcomposite
│ │ ├─imageicon
│ │ ├─imageviewer
│ │ ├─img
│ │ ├─listbox
│ │ ├─logview
│ │ ├─multiplepages
│ │ ├─notifyicon
│ │ ├─progressindicator
│ │ ├─radiobutton
│ │ ├─settings
│ │ ├─slider
│ │ ├─statusbar
│ │ ├─tableview
│ │ └─webview
│ ├─l10n
│ └─tools
│ └─ui2walk
└─win
C:\Users\shellus\go>
i see GOPATH is {user}/go
but i usage makefile content:
export GOPATH:=$(shell pwd)
default: window
window:
go install -tags 'release' win32api/createWindow
C:\data\c\my-go-starter>tree
C:.
├─.idea
│ └─libraries
├─bin
└─src
├─base
├─echo
├─gui
├─http
├─parse
├─signal
├─socket
├─syscall
└─win32api
├─createWindow
└─messageBox
C:\data\c\my-go-starter>make window
go install -tags 'release' win32api/createWindow
src\win32api\createWindow\createWindow.go:4:2: cannot find package "github.com/AllenDang/w32" in any of:
C:\Go\src\github.com\AllenDang\w32 (from $GOROOT)
c:\data\c\my-go-starter\src\github.com\AllenDang\w32 (from $GOPATH)
make: *** [window] Error 1
C:\data\c\my-go-starter>
How can i set GOPATH it up?