作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
"究竟是做什么的?-6ren"> "究竟是做什么的?-根据“berks help update”,该命令应该: "Update the cookbooks (and dependencies) specified in the Berksfile" (是-6ren">
根据“berks help update”,该命令应该:
"Update the cookbooks (and dependencies) specified in the Berksfile"
最佳答案
update 命令将尝试查找每本说明书的最新版本(仍满足您定义的任何版本要求)。例如,假设您有以下 Berksfile:
cookbook 'foo', '~> 1.0.0'
1.0.x
中的任何版本系列。所以你运行
berks install
和(假设)
foo-1.0.5
已安装到您本地的 Berkshelf 中。锁定文件将在 1.0.5 版中“锁定”foo 的定义,因此其他开发人员和 future 安装将始终使用 1.0.5 版(这是锁定文件的全部内容)。
berks update
将解锁锁定文件中的硬依赖关系,但将约束保留在 Berksfile 中。所以(假设),如果社区网站有以下 foo 食谱版本:
berks update
会将您的本地版本更新为
1.0.8
,因为这是仍然满足您的约束的最新发布版本。
关于chef-infra - "berks update <cookbook-name>"究竟是做什么的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21034625/
Feel free to skip straight to TL/DR if you're not interested in details of the question 简短的序言: 我最近决定
我一直在阅读 A Tour of Go学习Go-Lang到目前为止一切顺利。 我目前在 Struct Fields类(class),这是右侧的示例代码: package main import "fm
Last time I got confused顺便说一下PowerShell急切地展开集合,基思总结了它的启发式如下: Putting the results (an array) within a
我是一名优秀的程序员,十分优秀!