我试图将一个Go应用程序部署到Heroku,我正在使用godep进行依赖管理作为他们的文档建议.
但是当我推送英雄大师我得到以下错误,告诉文件sasl.go不存在.
但是当我推送英雄大师我得到以下错误,告诉文件sasl.go不存在.
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'
有人可以帮我解决这个问题吗?
谢谢.
你在项目中使用godep保存.
原文链接:https://www.f2er.com/javaschema/281415.html如果是,请删除Godep和供应商目录,并尝试使用godep保存,而不需要.
我这样做,为我工作.