我想部署一個Go應用程序到Heroku,我正在使用godeps進行依賴關係管理,因爲他們的文檔建議。 但是,當我git push heroku master
我得到以下錯誤,告訴文件sasl.go不存在。當部署去Heroku的應用程序時mgo依賴錯誤
remote: # github.com/grsouza/feeng-api/vendor/gopkg.in/mgo.v2/internal/sasl
remote: vendor/gopkg.in/mgo.v2/internal/sasl/sasl.go:15:24: fatal error: sasl/sasl.h: No such file or directory
remote: // #include <sasl/sasl.h>
remote: ^
remote: compilation terminated.
remote: github.com/grsouza/feeng-api/vendor/github.com/onsi/gomega
remote:
remote: ! Push rejected, failed to compile Go app
remote:
remote: Verifying deploy....
remote:
remote: ! Push rejected to limitless-ridge-36512.
remote:
To https://git.heroku.com/limitless-ridge-36512.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/limitless-ridge-36512.git'
任何人都可以幫我解決這個問題嗎?
謝謝。
更新了'gopkg.in/mgo.v2'的商品版嗎? – elithrar