我正在嘗試使用此模板和本指南將 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?
Heroku go buildpack:找不到我創建的模塊的導入路徑
慕碼人8056858
2023-07-17 14:16:14