【发布时间】:2021-02-11 17:17:56
【问题描述】:
当我尝试在playground (snippet) 上运行代码 sn-p 时,出现错误:
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
要运行代码“playground”必须下载viper,它是传递依赖。
我假设“操场”对获取依赖项有限制。 我能解决吗❓
【问题讨论】:
标签: go go-playground