安装狂欢时出错:未定义:config.DEFAULT_SECTION

Error in installing revel: undefined: config.DEFAULT_SECTION

我正在使用 Bunch 安装 Revel。 我遇到以下错误:

installing github.com/revel/revel ... 2017/03/27 13:49:41 failed installing packages: failed building package github.com/revel/revel, error: # github.com/revel/revel
./revel.go:180: undefined: config.DEFAULT_SECTION
, output: %!s(MISSING): exit status 2 [exit status 2 github.com/dkulchenko/bunch/packages.go:234: failed building package github.com/revel/revel, error: # github.com/revel/revel
./revel.go:180: undefined: config.DEFAULT_SECTION
, output: %!s(MISSING) github.com/dkulchenko/bunch/packages.go:643: ]

请帮我解决这个问题,让我知道如何解决这个问题。

下面是我的 BunchFile 的样子:

github.com/dkulchenko/bunch !self

github.com/robfig/config
github.com/revel/revel v0.13.0
github.com/revel/cmd/revel v0.13.0
github.com/janekolszak/revmgo
github.com/afex/hystrix-go/hystrix
github.com/remind101/newrelic

Revel 更改了 github.com/revel/config/config.go 中的 CONFIG_DEFAULT 变量名 while ago

您可能还需要将该存储库固定在 v0.13.0,大概是通过将其添加到您的束文件中:

github.com/revel/config v0.13.0

您也可以删除 v0.13.0 的狂欢图钉并获取更新的版本。