Heroku go buildpack:找不到我创建的模块的导入路径

Heroku go buildpack : Cannot find import path for my created module

我正在尝试使用 this template and this guide 将 Go 网络应用程序部署到 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'

deployment command is here 之后的完整日志。

我看到 heroku 实际上在 go.mod 文件中检测到模块 github.com/f4ww4z/sipss(参见日志 link),那么为什么它会抛出这个 cannot find module providing package github.com/f4ww4z/sipss

看起来您的 git 存储库是私有的。阅读此 https://github.com/heroku/heroku-buildpack-go#private-git-repos