feat: update packer to v1.13.1 #minor - #597
Merged
public-glueops-renovatebot[bot] merged 1 commit intoSep 15, 2026
Merged
Conversation
public-glueops-renovatebot
Bot
force-pushed
the
renovate-automerge/packer-1.13.x
branch
from
September 15, 2026 11:15
2679482 to
a4b3c75
Compare
public-glueops-renovatebot
Bot
deleted the
renovate-automerge/packer-1.13.x
branch
September 15, 2026 11:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.12.0→1.13.1Release Notes
hashicorp/packer (packer)
v1.13.1Compare 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
-Fileoperator 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:
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.0Compare 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:
GH-13369
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR has been generated by Mend Renovate CLI.