github.com/hashicorp/packer@v1.14.3/website/content/docs/release-notes/v1_13.mdx (about) 1 --- 2 page_title: Packer v1.13 release notes 3 description: Learn about the changes in Packer v 1.13 4 --- 5 6 # Packer v1.13 release notes 7 8 This page describes changes to Packer in v1.13. Refer to the [Packer repository](https://github.com/hashicorp/packer/releases) for information about all releases. 9 10 ## New features 11 12 This release includes the following updates. 13 14 ### Shell Provisioner Enhancement 15 16 The shell provisioner’s inline field now supports executing scripts directly, including those with their own shebang (#!) lines. 17 This enhancement allows you to provide a full script as an inline command, enabling dynamic scripts via tools like templatefile. 18 19 ### New functions 20 21 As part of Packer 1.13, we have introduced below functions. 22 23 * `sum`: takes a list or set of numbers and returns the sum of those numbers.. 24 * `startswith`: takes two values: a string to check and a prefix string. The function returns true if the string begins with that exact prefix. 25 * `endswith`: takes two values: a string to check and a suffix string. The function returns true if the first string ends with that exact suffix. 26 27 ### Packer fmt command to format multiple HCL files 28 29 Added the ability for the packer fmt command to format multiple HCL files at once. 30 This enhancement allows users to format several files in a single command invocation. 31 32 ### Top-Level hcp_packer_registry Block Support 33 34 Added support for defining the hcp_packer_registry block at the top level of the Packer configuration. Enables improved management and referencing of HCP Packer registries directly in the root schema. 35 Also added validation around the multiple hcp_packer_registry blocks at top level. 36 37 ## Bug fixes 38 39 ### Documentation Update 40 41 Updated the documentation to explicitly state that a trailing slash is required when uploading directories, regardless of the guest OS. 42 This clarification is intended to ensure consistent behavior and prevent confusion, especially for Windows users. 43 44 ### --use-sequential-evaluation Flag Now Works in Packer Console 45 46 Fixed an issue where using the --use-sequential-evaluation flag with packer console resulted in an error. 47 The flag is now properly included in the supported options for packer console and works as intended. 48 Removed this flag from the fix subcommand, where it was not used or required. 49 50 ### Inline PowerShell Command 51 52 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. 53 54 ### Preserve the user-defined order of variable files 55 56 Ensures that Packer now preserves the user-defined order of variable files as input by the user. 57 This change maintains the intended precedence of variables, honoring the order specified on the command line.