简体   繁体   English

librarian-puppet v2.1.0 在 Puppetfile 中切换 git 分支

[英]librarian-puppet v2.1.0 switch git branch in Puppetfile

I am using librarian-puppet v2.1.0 with the following puppet file:我正在使用带有以下 puppet 文件的librarian-puppet v2.1.0

mod "team/app", 
    :git => "git@github.com:myTeam/puppet-repo.git",
    :branch => 'weblegacy'

When I try to install puppet I get unrecognized options: branch .当我尝试安装 puppet 时,我得到unrecognized options: branch

What is the syntax for switching branching in a Puppetfile in version 2.1.0 ?2.1.0版本的Puppetfile中切换分支的语法是什么?

What about:关于什么:

mod "team/app", 
    :git => "git@github.com:myTeam/puppet-repo.git",
    :ref => 'weblegacy'

or if you want to specify a version:或者如果你想指定一个版本:

mod "team/app", 
    :git => "git@github.com:myTeam/puppet-repo.git",
    :tag => 'v1.0.0'

More about the Puppetfile syntax on the official docs有关官方文档Puppetfile语法的更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM