Closed mayeaux closed 8 years ago
Which version of Golang do you use?
Can't boot too.
★ go-starter-kit git:(kdev) »make serve Hash: b75f147d15b668a79458 Version: webpack 1.12.13 Time: 3183ms Asset Size Chunks Chunk Names bundle.js 1.35 MB 0 [emitted] bundle bundle.css 9.44 kB 0 [emitted] bundle
[ENV] go-starter-kit git:(kdev) »go env GOARCH="amd64" GOBIN="" GOCHAR="6" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/kelvinji/mitnick/tools/go" GORACE="" GOROOT="/usr/local/Cellar/go/1.4.2/libexec" GOTOOLDIR="/usr/local/Cellar/go/1.4.2/libexec/pkg/tool/darwin_amd64" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common" CXX="clang++" CGO_ENABLED="1"
@olebedev BTW, i am using srlt
following the build guide from README.md
@kelvinji2009, go 1.4.2 is not working with GO15VENDOREXPERIMENT, please use Go 1.5.3 instead.
@olebedev Okay, got it. Thanks.
@olebedev There is a same problem.
Please Help!
@magj2006, sure. You need to install go-bindata
directly. Run this command to do it: go install github.com/jteeuwen/go-bindata
. I have just fixed README.md
. Take a look it again.
@olebedev I installed go-bindata, and run make serve again, output : server/app.go:8:2: cannot find package "github.com/elazarl/go-bindata-assetfs" in any of: /opt/apps/go/src/github.com/elazarl/go-bindata-assetfs (from $GOROOT) /home/cloud/Code/go/src/github.com/elazarl/go-bindata-assetfs (from $GOPATH) server/app.go:9:2: cannot find package "github.com/itsjamie/go-bindata-templates" in any of: /opt/apps/go/src/github.com/itsjamie/go-bindata-templates (from $GOROOT) /home/cloud/Code/go/src/github.com/itsjamie/go-bindata-templates (from $GOPATH) server/api.go:6:2: cannot find package "github.com/labstack/echo" in any of: /opt/apps/go/src/github.com/labstack/echo (from $GOROOT) /home/cloud/Code/go/src/github.com/labstack/echo (from $GOPATH) server/app.go:13:2: cannot find package "github.com/labstack/echo/middleware" in any of: /opt/apps/go/src/github.com/labstack/echo/middleware (from $GOROOT) /home/cloud/Code/go/src/github.com/labstack/echo/middleware (from $GOPATH) server/app.go:10:2: cannot find package "github.com/nu7hatch/gouuid" in any of: /opt/apps/go/src/github.com/nu7hatch/gouuid (from $GOROOT) /home/cloud/Code/go/src/github.com/nu7hatch/gouuid (from $GOPATH) server/app.go:14:2: cannot find package "github.com/olebedev/config" in any of: /opt/apps/go/src/github.com/olebedev/config (from $GOROOT) /home/cloud/Code/go/src/github.com/olebedev/config (from $GOPATH) server/react.go:13:2: cannot find package "gopkg.in/olebedev/go-duktape-fetch.v2" in any of: /opt/apps/go/src/gopkg.in/olebedev/go-duktape-fetch.v2 (from $GOROOT) /home/cloud/Code/go/src/gopkg.in/olebedev/go-duktape-fetch.v2 (from $GOPATH)
so, need to add vendor directory to to env path ?
IMPORT_PATH = $(shell echo `pwd` | sed "s|^$(GOPATH)/src/||g")
go build -ldflags '$(LDFLAGS)' -o $@ $(IMPORT_PATH)/server
if this, we must put the project into $GOPATH/src? But usually we put the code in anywhere we want.
★ go-starter-kit git:(kdev) »make serve Hash: b75f147d15b668a79458 Version: webpack 1.12.13 Time: 3061ms Asset Size Chunks Chunk Names bundle.js 1.35 MB 0 [emitted] bundle bundle.css 9.44 kB 0 [emitted] bundle
@kelvinji2009, yup. Put the code somewhere in $GOPATH/src
.
Okay I'm only working with Go on a weekend project, I will come back to this though, for the record I am running 1.4.2 at the moment but will upgrade and see what happens on Saturday.
As I see all that you need just update go version up to 1.6. Go's 1.4 linker doesn't accept LDFLAGS which are defined at this moment in Makefile.
On Wed, Feb 24, 2016 at 9:11 AM, Anthony Mayfield notifications@github.com wrote:
Okay I'm only working with Go on a weekend project, I will come back to this though, for the record I am running 1.4.2 at the moment but will upgrade and see what happens on Saturday.
— Reply to this email directly or view it on GitHub https://github.com/olebedev/go-starter-kit/issues/36#issuecomment-188055989 .
Oleg Lebedev +7 922 1505553