olebedev / go-starter-kit

[abandoned] Golang isomorphic react/hot reloadable/redux/css-modules/SSR starter kit
Other
2.82k stars 358 forks source link

unrecognized package #4

Closed sailei1 closed 9 years ago

sailei1 commented 9 years ago

go get app/... package golang.org/x/net/context: unrecognized import path "golang.org/x/net/context" package golang.org/x/net/publicsuffix: unrecognized import path "golang.org/x/net/publicsuffix"

make serve cleaned 62% 62/71 build modulesContainer#eachAtRule is deprecated. Use Container#walkAtRules instead. Container#eachRule is deprecated. Use Container#walkRules instead. Container#eachDecl is deprecated. Use Container#walkDecls instead. Node#style() is deprecated. Use Node#raw() Container#remove is deprecated. Use Container#removeChild 64% 64/71 build modulesNode#before is deprecated. Use Node#raws.before Hash: ad1be354968dcbacaf4f
Version: webpack 1.12.1 Time: 9441ms Asset Size Chunks Chunk Names building@58ca48db9e7cd1cfa3aeebcb77db21cf.jpg 204 kB [emitted]
favicon@71e4b47eb774474184d8ac2302d45f3e.ico 205 bytes [emitted]
../../bundle.server.js 1.11 MB 0, 1 [emitted] ../../bundle.server bundle.js 1.11 MB 1, 0 [emitted] bundle bundle.css 4.23 kB 0, 1, 1, 0 [emitted] ../../bundle.server, bundle

olebedev commented 9 years ago

Could you provide output of this command - echo $GOPATH && pwd, executed in project folder?

sailei1 commented 9 years ago

export GOARCH=amd64 export GOOS=darwin export GOPATH=$HOME/golang export GOROOT=/usr/local/go export PATH=$PATH:$GOPATH/bin export PATH=$PATH:$GOROOT/bin

sailei1 commented 9 years ago

sai:~ zhangsailei$ echo $GOPATH && pwd /Users/zhangsailei/golang /Users/zhangsailei

olebedev commented 9 years ago

It looks like you didn't export new GOPATH. Try this in project folder:

$ export GOPATH=`pwd`
$ go get app/...
$ go get github.com/jteeuwen/go-bindata/...

Check install section for more information.

I leave this issue open, while I not sure that the problem is just correct GOPATH. Please, let me know.

sailei1 commented 9 years ago

It's just correct GOPATH , put in $HOME/golang/src it's fine

olebedev commented 9 years ago

Ok :+1: It is still recommended to use separate GOPATH, at least for this project.