Go初心者です。
Go言語をひとまずローカルで動かしてみようと思い、以下の記事を参考に進めていきました。
(URL: https://qiita.com/ryutah/items/eff6a044c81c5ba109d0)
export GOPATH=$HOME/go export PATH=$GOPATH/bin:$PATH
プロジェクト構成:
/Users/<名前>/go/src/github.com/<github名>/gotest/ ├── Gopkg.lock ├── Gopkg.toml ├── Makefile ├── README.md ├── app │ ├── app.yaml │ └── main.go ├── gae │ └── hello.go └── vendor └── github.com ├── gorilla └── ryutah
gvm+depのツールを使っています。
app配下にて、以下のコマンドを実行するとサーバーは立ち上がるのですが、こんなエラーメッセージがでます。
$ goapp serve -port 8741 app.yaml
ERROR 2018-01-29 08:04:43,822 instance_factory.py:196] Failed to build Go application: (Executed command: /usr/local/Cellar/app-engine-go-64/1.9.61/share/app-engine-go-64/goroot-1.8/bin/go-app-builder -app_base /Users/<名前>/go/src/github.com/<github名>/gotest/app -api_version go1.8 -arch 6 -dynamic -goroot /usr/local/Cellar/app-engine-go-64/1.9.61/share/app-engine-go-64/goroot-1.8 -gopath /usr/local/Cellar/app-engine-go-64/1.9.61/share/app-engine-go-64/gopath -nobuild_files ^^$ -incremental_rebuild -unsafe -binary_name _go_app -extra_imports appengine_internal/init -work_dir /var/folders/bh/rrhyyn410hn6stjvxsjcl8sw0000gn/T/tmp2vow5iappengine-go-bin -gcflags -I,/usr/local/Cellar/app-engine-go-64/1.9.61/share/app-engine-go-64/goroot-1.8/pkg/darwin_amd64_appengine -ldflags -L,/usr/local/Cellar/app-engine-go-64/1.9.61/share/app-engine-go-64/goroot-1.8/pkg/darwin_amd64_appengine main.go)
/var/folders/bh/rrhyyn410hn6stjvxsjcl8sw0000gn/T/tmp2vow5iappengine-go-bin/main.go:6: can't find import: "github.com/gorilla/mux"
2018/01/29 17:04:43 Can't find package "github.com/gorilla/mux" in $GOPATH: cannot find package "github.com/gorilla/mux" in any of:
/usr/local/Cellar/app-engine-go-64/1.9.61/share/app-engine-go-64/goroot-1.8/src/github.com/gorilla/mux (from $GOROOT) /usr/local/Cellar/app-engine-go-64/1.9.61/share/app-engine-go-64/gopath/src/github.com/gorilla/mux (from $GOPATH)
2018/01/29 17:04:43 Can't find package "github.com/ryutah/gae-structure-sample/gae" in $GOPATH: cannot find package "github.com/ryutah/gae-structure-sample/gae" in any of:
/usr/local/Cellar/app-engine-go-64/1.9.61/share/app-engine-go-64/goroot-1.8/src/github.com/ryutah/gae-structure-sample/gae (from $GOROOT)
/usr/local/Cellar/app-engine-go-64/1.9.61/share/app-engine-go-64/gopath/src/github.com/ryutah/gae-structure-sample/gae (from $GOPATH)
2018/01/29 17:04:43 go-app-builder: build timing: 0×skip (0s total), 1×compile (16ms total), 0×link (0s total)
2018/01/29 17:04:43 go-app-builder: failed running compile: exit status 2
main.goで定義しているパッケージのパスが間違っているのかと、調整し色々と試してみたのですが、
エラーが変わらずで。。。
どなたかご教示頂けないでしょうか??
よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/01/29 11:07
2018/01/29 23:58
2018/01/30 05:43
2018/01/30 05:52
2018/01/30 07:12
2018/01/30 07:17
2018/01/30 08:13
2018/01/30 08:48
2018/01/30 08:57