【问题标题】:Error in installing revel: undefined: config.DEFAULT_SECTION安装狂欢时出错:未定义:config.DEFAULT_SECTION
【发布时间】:2017-08-20 00:04:11
【问题描述】:

我正在使用 Bunch 安装狂欢。 我收到以下错误:

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

【问题讨论】:

    标签: go revel bunch


    【解决方案1】:

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

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

    github.com/revel/config v0.13.0

    您还可以删除您的 revel 到 v0.13.0 并获取更新的版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-18
      • 1970-01-01
      • 1970-01-01
      • 2013-09-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多