1

当我尝试在playground (snippet)上运行代码片段时,出现错误:

timeout running go build
go: finding module for package github.com/spf13/viper
go: downloading github.com/spf13/viper v1.7.1
go: found github.com/spf13/viper in github.com/spf13/viper v1.7.1
go: downloading github.com/magiconair/properties v1.8.1
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/spf13/jwalterweatherman v1.0.0
go: downloading github.com/spf13/cast v1.3.0
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading github.com/spf13/pflag v1.0.3
go: downloading gopkg.in/ini.v1 v1.51.0
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading gopkg.in/yaml.v2 v2.2.4
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/spf13/afero v1.1.2
go: downloading golang.org/x/text v0.3.2
go: downloading golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0

要运行代码“操场”必须下载毒蛇和它的传递依赖。

我假设“操场”有限制获得依赖。我能解决吗❓</p>

4

1 回答 1

2

游乐场 - 超时运行 go build [...] 我可以解决它吗❓</p>

不,对不起。

Playground 是一个游乐场,而不是构建服务器或应用程序服务器。

于 2020-10-29T09:25:16.083 回答