我正在尝试使用此模板和本指南将 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/sipssremote: ! Push rejected, failed to compile Go app.remote: remote: ! Push failedremote: 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?
- 1 回答
- 0 关注
- 122 浏览
添加回答
举报
0/150
提交
取消