goをherokuで動かそうとしていますが、デプロイが成功しません。
実行したコマンドを掲載させていただきます。
最後にエラーが発生しているのですが、なにか手順が間違えているのでしょうか。
(最後のエラー以前に、godep go installのコマンドもうまくできていないのでしょうか。)
原因が分からず困っております。
なにかアドバイスをいただけると助かります。
C:\Go\src\appliname>godep save
godep: ignoring stdlib package: appliname
C:\Go\src\appliname>godep go install
main.go:12:2: cannot find package "github.com/eclipse/paho.mqtt.golang" in any of:
C:\Go\src\vendor\github.com\eclipse\paho.mqtt.golang (vendor tree)
C:\Go\src\github.com\eclipse\paho.mqtt.golang (from $GOROOT)
C:\Go\src\vfk\Godeps_workspace\src\github.com\eclipse\paho.mqtt.golang
(from $GOPATH)
C:\Users\xxxxx\go\src\github.com\eclipse\paho.mqtt.golang
main.go:13:2: cannot find package "github.com/line/line-bot-sdk-go/linebot" in a
ny of:
C:\Go\src\vendor\github.com\line\line-bot-sdk-go\linebot (vendor tree)
C:\Go\src\github.com\line\line-bot-sdk-go\linebot (from $GOROOT)
C:\Go\src\appliname\Godeps_workspace\src\github.com\line\line-bot-sdk-go\line
bot (from $GOPATH)
C:\Users\xxxxx\go\src\github.com\line\line-bot-sdk-go\linebot
godep: go exit status 1
C:\Go\src\appliname>git add .
C:\Go\src\appliname>git commit -m "second commit"
[master 95dfa7e] second commit
4 files changed, 149 insertions(+)
create mode 100644 Godeps/Godeps.json
create mode 100644 Godeps/Readme
create mode 100644 ca-certificates.crt
create mode 100644 main.go
C:\Go\src\appliname>git push heroku master
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Delta compression using up to 8 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (10/10), 3.08 KiB | 525.00 KiB/s, done.
Total 10 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Go app detected
remote: -----> Fetching jq... done
remote: -----> Checking Godeps/Godeps.json file.
remote: -----> Installing go1.11.5
remote: -----> Fetching go1.11.5.linux-amd64.tar.gz... done
remote: !! Installing package '.' (default)
remote: !!
remote: -----> Running: go install -v -tags heroku .
remote: main.go:12:2: cannot find package "github.com/eclipse/paho.mqtt.golang"
in any of:
remote: /app/tmp/cache/go1.11.5/go/src/github.com/eclipse/paho.mqtt.gola
ng (from $GOROOT)
remote: /tmp/tmp.Lg6Pyzjd0p/.go/src/github.com/eclipse/paho.mqtt.golang
(from $GOPATH)
remote: main.go:13:2: cannot find package "github.com/line/line-bot-sdk-go/lineb
ot" in any of:
remote: /app/tmp/cache/go1.11.5/go/src/github.com/line/line-bot-sdk-go/l
inebot (from $GOROOT)
remote: /tmp/tmp.Lg6Pyzjd0p/.go/src/github.com/line/line-bot-sdk-go/line
bot (from $GOPATH)
remote: ! Push rejected, failed to compile Go app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to appliname.
remote:
To https://git.heroku.com/appliname.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/appliname.git'
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。