英文:
Error in installing revel: undefined: config.DEFAULT_SECTION
问题
我正在使用Bunch安装Revel,但是遇到以下错误:
安装github.com/revel/revel ... 2017/03/27 13:49:41 安装软件包失败:构建github.com/revel/revel软件包失败,错误:# github.com/revel/revel
./revel.go:180: 未定义:config.DEFAULT_SECTION
,输出:%!s(MISSING):退出状态2 [退出状态2 github.com/dkulchenko/bunch/packages.go:234: 构建github.com/revel/revel软件包失败,错误:# github.com/revel/revel
./revel.go:180: 未定义:config.DEFAULT_SECTION
,输出:%!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
英文:
I am installing revel using Bunch .
I am getting below error:
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: ]
Please help me with this and let me know how to resolve this problem.
Below is how my BunchFile look:
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
得分: 1
Revel在github.com/revel/config/config.go
中改变了CONFIG_DEFAULT变量的名称一段时间前。
你可能还需要将该存储库固定在v0.13.0版本,可以通过将以下内容添加到你的bunch文件中实现:
github.com/revel/config v0.13.0
你也可以删除对revel的v0.13.0版本的固定,并获取一个更新的版本。
英文:
Revel changed the CONFIG_DEFAULT variable name in github.com/revel/config/config.go
a while ago
You probably need to pin that repository at v0.13.0 also, presumably by adding this to your bunch file:
github.com/revel/config v0.13.0
You could also remove your pin of revel to v0.13.0 and get a more recent version.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论