将 Go 应用程序部署到具有私有 GitHub 存储库作为依赖项的 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 团队成员。
慕森卡
相关分类