Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将golang web app推送到heroku时,buildpack不知道请求的文件(go1.13.7.linux-amd64.tar.gz)?_Go_Heroku - Fatal编程技术网

将golang web app推送到heroku时,buildpack不知道请求的文件(go1.13.7.linux-amd64.tar.gz)?

将golang web app推送到heroku时,buildpack不知道请求的文件(go1.13.7.linux-amd64.tar.gz)?,go,heroku,Go,Heroku,我已经创建了一个golang REST API,并试图将其部署到heroku。我在Windows7上构建了它 我链接了我的github帐户,将我的golang web应用程序推送到heroku,但我收到以下错误: 请求的文件(go1.13.7.linux-amd64.tar.gz)对于构建包是未知的 我正在使用打包我的应用程序。以下是我在我的Gopkg.toml中提供给heroku的元数据: [metadata.heroku] root-package = "restapitest" g

我已经创建了一个golang REST API,并试图将其部署到heroku。我在Windows7上构建了它

我链接了我的github帐户,将我的golang web应用程序推送到heroku,但我收到以下错误:

请求的文件(go1.13.7.linux-amd64.tar.gz)对于构建包是未知的

我正在使用打包我的应用程序。以下是我在我的Gopkg.toml中提供给heroku的元数据:

[metadata.heroku]
  root-package = "restapitest"
  go-version = "go1.13.7"
  install = [ "./..." ]
我的文件项目文件夹如下所示:

C:\$GOPATH\src\API\RESTAPI\

                           Vendor\github.com\gorilla
                                             go-sql-driver
                           Gopkg.lock
                           Gopkg.toml
                           main.go

这似乎是版本的问题。将其降低到1.12.0允许成功部署应用程序