我正在尝试使用此模板和本指南将 Go Web 应用程序部署到 Heroku 。在本地工作得很好,但是当我尝试使用
git push heroku master
我收到此错误:
remote: Parsing meta tags from https://github.com?go-get=1 (status code 200)
remote: can't load package: package github.com/f4ww4z/sipss: unknown import path "github.com/f4ww4z/sipss": cannot find module providing package github.com/f4ww4z/sipss
remote: ! Push rejected, failed to compile Go app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to sipss.
remote:
To https://git.heroku.com/sipss.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/sipss.git'
部署命令后的完整日志位于此处。
github.com/f4ww4z/sipss
我看到 heroku 实际上检测到了文件中的模块go.mod
(请参阅日志链接),那么为什么它会抛出这个cannot find module providing package github.com/f4ww4z/sipss
?
德玛西亚99
相关分类