hashicorp / hashicorp/packer

Specify builder name using -only flag now possible

Open
#11,673 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
15.8k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

#### Overview of the Issue

Not really a bug but a documentation update request.

It looks like you are now able to use the builder name to specify which builder to use at run time using -only flag.

On the website, it says "Note: It is not yet possible to match a named build block to do this, but this is soon going to be possible. So here "a.*" will match nothing."

https://www.packer.io/docs/templates/hcl_templates/blocks/build

#### Reproduction Steps

I have a builder block with name as "main-builder". I am able to use the -only="main-builder" flag to specify the builder I want to use in the template.

### Packer version

Latest

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.