olebedev / go-starter-kit

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

local import "./server" in non-local package #30

Closed Kielan closed 8 years ago

Kielan commented 8 years ago

I've decided to create my own issue ticket so that we can solve the most pressing concerns of this start kit so that I can contribute as well because I really like the idea I just think it needs a little bit more documentation.

on make serve I get the output

go-starter-kit kielan$ make serve
cleaned
Hash: 7cfc13abe9c261045111  
Version: webpack 1.12.12
Time: 2770ms
     Asset     Size  Chunks             Chunk Names
 bundle.js  1.27 MB       0  [emitted]  bundle
bundle.css  9.44 kB       0  [emitted]  bundle
    + 527 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
golang_projects/bin/go-bindata -pkg=server -prefix=server/data -debug -o=server/bindata.go server/data/...
cat: .pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
restart the app...
can't load package: golang_projects/src/github.com/olebedev/go-starter-kit/main.go:6:2: local import "./server" in non-local package
make[1]: *** [restart] Error 1
make: *** [serve] Error 2

Not sure what the ./server being referred to as non-local package means.

ghost commented 8 years ago

+1

olebedev commented 8 years ago

It seems that it is better to move all go code into project's root directory without any local import. It would be more flexable and independent.