安装revel时出错:undefined:config.DEFAULT_SECTION

时间:2017-03-27 10:18:01

标签: go revel bunch

我正在使用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

1 个答案:

答案 0 :(得分:1)

Revel更改了github.com/revel/config/config.go中的while ago

中的CONFIG_DEFAULT变量名称

您可能还需要在v0.13.0处固定该存储库,可能是将其添加到您的数据库文件中:

github.com/revel/config v0.13.0

你也可以将你的狂欢引脚删除到v0.13.0并获得更新的版本。