Skip to content

feat: update packer to v1.13.1 #minor - #597

Merged
public-glueops-renovatebot[bot] merged 1 commit into
mainfrom
renovate-automerge/packer-1.13.x
Sep 15, 2026
Merged

public-glueops-renovatebot[bot] merged 1 commit into
mainfrom
renovate-automerge/packer-1.13.x

Conversation

@public-glueops-renovatebot

@public-glueops-renovatebot public-glueops-renovatebot Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
packer uses-with minor 1.12.0 → 1.13.1

Release Notes

hashicorp/packer (packer)

v1.13.1

Compare Source

Fixed issues with powershell script execution by ensuring environment variables are correctly set, appending newline characters to prevent formatting-related errors, and updating acceptance tests to use regex matching for more reliable assertions.

Breaking Changes

Starting with Packer v1.13.1, the way PowerShell commands are executed has changed. Packer now uses the -File operator to run PowerShell scripts by default. As part of this update, Packer prepends certain preamble logic to the script before adding your script content.

The default command now looks like:

powershell -executionpolicy <execution_policy> -file {{.Path}}

Here, {{.Path}} refers to the path of the temporary script file generated by Packer. When using the script or scripts block, Packer injects the preamble logic at the top of this script file.

If your script relies on specific PowerShell constructs (such as module imports, parameter declarations, or function definitions) that must appear at the top of the script, we recommend wrapping your script content inside a function and invoking it. This helps avoid any conflicts or ordering issues introduced by the preamble logic.

v1.13.0

Compare Source

1.13.0 (June 2, 2025)

FEATURES:
  • core: Enhanced the existing inline field in the shell provisioner to support any script with its own shebang (#!).
    Allows users to provide scripts directly in the inline field, making it possible to use scripts generated by functions like templatefile.
    Ensures that the shell provisioner executes the given script as intended, honoring the script's shebang line.
    GH-13313

  • core: Added new built-in functions to Packer:
    sum
    startswith
    endswith
    These new functions expand the capabilities for template logic and variable handling in Packer builds.
    GH-13349

IMPROVEMENTS:
  • hcl2: Added the ability for the packer fmt command to format multiple HCL files at once.
    This enhancement allows users to format several files in a single command invocation.
    GH-13362

  • hcl2: Added top level hcp_packer_registry block (this configuration was previously nested inside the build block and is still valid but deprecated) GH-13314

BUG FIXES:
  • core: Updated the documentation to explicitly state that a trailing slash is required when uploading directories, regardless of the guest OS.
    This clarification is intended to ensure consistent behavior and prevent confusion, especially for Windows users.
    GH-13309

  • core: Fixed an error occurring when using the --use-sequential-evaluation flag with packer console.
    Updated the FlagSets to correctly include this flag, resolving the error.
    GH-13316

  • core: added a wrapper around inline PowerShell commands executed by the provisioner to catch errors and ensure the Packer build fails if any command results in an error. #​13334

  • hcl2: Ensures that Packer now preserves the user-defined order of variable files as input by the user.
    This change maintains the intended precedence of variables, honoring the order specified on the command line.
    GH-13350

SECURITY:

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@public-glueops-renovatebot
public-glueops-renovatebot Bot force-pushed the renovate-automerge/packer-1.13.x branch from 2679482 to a4b3c75 Compare September 15, 2026 11:15
@public-glueops-renovatebot
public-glueops-renovatebot Bot merged commit 90e2ebe into main Sep 15, 2026
3 checks passed
@public-glueops-renovatebot
public-glueops-renovatebot Bot deleted the renovate-automerge/packer-1.13.x branch September 15, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants