olebedev / go-starter-kit

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

go get app/ undefined: Asset #5

Closed m1halo closed 8 years ago

m1halo commented 8 years ago

Any idea why this is happening on fresh clone?

bash-3.2$ go get app
# app/server
src/app/server/app.go:64: undefined: Asset
src/app/server/app.go:65: undefined: AssetDir
src/app/server/react.go:191: undefined: Asset
olebedev commented 8 years ago

@m1halo thanks for this report!

Actually there is no any problems with undefined: Asset. That warning was thrown because there is no bindata.go file which should be created at the compile time. You just may ignore this at first time.

But, I had just found some interesting bug with javascript's dependencies. I leave this issue opened and I will fix it today, stay tuned.

olebedev commented 8 years ago

@m1halo now it should works, take a look https://github.com/olebedev/go-starter-kit/commit/5e7c5083b55e8e68303b15cc1aa8f89f264c4ddc

olebedev commented 8 years ago

It seems that it would be better to solve that instead of pick up this issue each time.

doliver3 commented 8 years ago

It would be best to update the readme than requiring the discovery of this issue upon a fresh clone as I just did searching Google.

olebedev commented 8 years ago

Yup, @doliver3 you right. I'll do it right now.

olebedev commented 8 years ago

The problem is fixed.

louwers commented 8 years ago

Is it though?

[me@sati go-test]$ go get ./server/...
# git.extrintr.me/bart/go-test/server
server/app.go:106: undefined: Asset
server/app.go:107: undefined: AssetDir
server/app.go:108: undefined: AssetInfo
server/app.go:121: undefined: Asset
server/app.go:149: undefined: Asset
server/app.go:149: undefined: AssetDir
server/react.go:157: undefined: Asset