github hashicorp/nomad-pack v0.4.2

9 hours ago

0.4.2 (March 16, 2026)

SECURITY:

IMPROVEMENTS:

  • cli: Add evaluation and deployment monitoring to run, stop, and destroy commands [GH-817]
  • cli: Add -deploy-override flag to plan and run commands to allow forcing deployment over existing jobs, including those not deployed by Nomad Pack [GH-757]
  • cli: Add environment variable overrides for plan exit codes [GH-813]
  • cli: Add pack name autocompletion for destroy, info, plan, render, run, status, and stop commands with support for --registry flag filtering [GH-803]
  • cli: Enhance info command to display full object type information and nested field details for complex variable types [GH-801]
  • cli: Display default values for all optional variables in info command output with proper indentation [GH-801]
  • cli: Add line and column information to HCL error messages using the standard HCL v2 format (e.g., variables.hcl:3,3-7) to help users locate configuration errors more easily [GH-807]
  • cli: Add fmt command to format pack template (.tpl) and configuration (.hcl) files [GH-767]
  • cli: Add path information to metadata to aid file template funcs [GH-830]
  • template: Improve regex parsing for namespace and region fields to support hyphenated values [GH-757]
  • template: Add tpl function for evaluating template strings stored in variables [GH-810]
  • variable: Improve the error message returned when using a variable file with an unsupported file extension [GH-791]
  • variable: Add support for optional() type constraint modifier in variable definitions [GH-798]

BUG FIXES:

  • cli: Fix destroy command incorrectly detecting conflicts when multiple jobs share name prefixes (e.g., "Laas-Service" vs "Laas-Service-Regression") [GH-795]
  • cli: Fix plan diff output to display EmbeddedTmpl content with proper line breaks for improved readability [GH-799]
  • cli: Fix render and generate-var-file commands incorrectly treating rendered template content as a printf format string, which corrupted format specifiers (e.g., %i%!i(MISSING)) in terminal output [GH-809]
  • cli: Fix destroy command not using namespace from job template, requiring explicit --namespace flag [GH-802]

Don't miss a new nomad-pack release

NewReleases is sending notifications on new releases.