Berkshelf:无法设置不受支持的配置值
Berkshelf: Cannot set unsupported config value
当我在我的食谱目录中 运行 berks(安装、打包或简称 berks)时,我收到以下消息,说 Berks 无法设置 ssl.verify
的值。
[jenkins@8ba245c234cb mycookbook_PR-58]$ berks
/usr/local/rvm/gems/ruby-2.4.0@global/gems/berkshelf-7.0.7/lib/berkshelf/cached_cookbook.rb:97: warning: already initialized constant Berkshelf::CachedCookbook::DIRNAME_REGEXP
/usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/gems/2.4.0/gems/berkshelf-7.0.7/lib/berkshelf/cached_cookbook.rb:97: warning: previous definition of DIRNAME_REGEXP was here
An error occurred while reading the Berksfile:
Cannot set unsupported config value ssl.verify.
但是,我什至没有 ~/.berkshelf/config.json
文件,因此我不认为我试图在任何地方设置这个变量。知道哪里出了问题吗?
Ruby 2.4.0,伯克谢尔夫 7.0.7
我引用了我在 [Berks install SSL_Connect Certification Verify failed] 中的旧答案:
尝试将以下代码片段放入位于 ~/.berkshelf/config.json
的 berksfile 配置中
{
"ssl": {
"verify": false
}
}
当我在我的食谱目录中 运行 berks(安装、打包或简称 berks)时,我收到以下消息,说 Berks 无法设置 ssl.verify
的值。
[jenkins@8ba245c234cb mycookbook_PR-58]$ berks
/usr/local/rvm/gems/ruby-2.4.0@global/gems/berkshelf-7.0.7/lib/berkshelf/cached_cookbook.rb:97: warning: already initialized constant Berkshelf::CachedCookbook::DIRNAME_REGEXP
/usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/gems/2.4.0/gems/berkshelf-7.0.7/lib/berkshelf/cached_cookbook.rb:97: warning: previous definition of DIRNAME_REGEXP was here
An error occurred while reading the Berksfile:
Cannot set unsupported config value ssl.verify.
但是,我什至没有 ~/.berkshelf/config.json
文件,因此我不认为我试图在任何地方设置这个变量。知道哪里出了问题吗?
Ruby 2.4.0,伯克谢尔夫 7.0.7
我引用了我在 [Berks install SSL_Connect Certification Verify failed] 中的旧答案:
尝试将以下代码片段放入位于 ~/.berkshelf/config.json
{
"ssl": {
"verify": false
}
}