gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 02:12:14 25 4
gpt4 key购买 nike

我正在使用 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 的 revel 并获取更新的版本。

关于go - 安装 revel : undefined: config. DEFAULT_SECTION 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43043734/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com