将私有 GitHub 存储库作为依赖项的 Go 应用程序部署到 Azure 的正确方法是什么?这是来自 Kudu 的当前错误:
Resolving dependencies
# cd .; git clone https://github.com/my/privaterepo
D:\local\Temp\8d315fa89272e69\gopath\src\github.com\my\privaterepo
Cloning into 'D:\local\Temp\8d315fa89272e69\gopath\src\github.com\my\privaterepo'...
fatal: could not read Username for 'https://github.com': Bad file descriptor
package github.com/my/privaterepo/pkg1: exit status 128
package github.com/my/privaterepo/pkg2: cannot find package $GOROOT)
Building Go app to produce exe file
azureapp\file.go:8:2: cannot find package "github.com/my/privaterepo/pkg1"
in any of:
D:\Program Files\Go\1.5.1\src\github.com\my\privaterepo\pkg1 (from $GOROOT)
我之前是通过 FTP 使用web.config
HttpPlatformHandler 条目进行部署的。但是使用 git push 更快,特别是对于非 Windows 团队成员。
谢谢