diff --git a/CHANGELOG.md b/CHANGELOG.md index 93916f1c1..aae00b2f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # 📦 Changelog +## 1.15.0 (February 4, 2026) + +### IMPROVEMENTS: + +* core/hcp: add support for updating HCP Packer registry channels and bucket log UI metadata. + [GH-13532](https://github.com/hashicorp/packer/pull/13532) + +* build: update Go to 1.24.12. + [GH-13553](https://github.com/hashicorp/packer/pull/13553) + +* docker: remove vmware and vsphere from the packer full image. + [GH-13442](https://github.com/hashicorp/packer/pull/13442) + +* docs: add comments to packer docs. + [GH-13534](https://github.com/hashicorp/packer/pull/13534) + +* compliance: update copyright and license headers. + [GH-13540](https://github.com/hashicorp/packer/pull/13540) + [GH-13543](https://github.com/hashicorp/packer/pull/13543) + [GH-13545](https://github.com/hashicorp/packer/pull/13545) + [GH-13544](https://github.com/hashicorp/packer/pull/13544) + +### BUG FIXES: + +* datasource/http: update acceptance test URL to avoid rate limiting. + [GH-13480](https://github.com/hashicorp/packer/pull/13480) + +* provisioner/powershell: ensure `LASTEXITCODE` is set before checking its value in tests. + [GH-13539](https://github.com/hashicorp/packer/pull/13539) + +### SECURITY: + +* Bump golang.org/x/crypto to 0.46.0 + [GH-13546](https://github.com/hashicorp/packer/pull/13546) + ## 1.14.3 (November 18, 2025) ### IMPROVEMENTS: diff --git a/Dockerfile b/Dockerfile index 54302ff27..d4fdab479 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,9 +69,7 @@ RUN /bin/packer plugins install "github.com/hashicorp/amazon" && \ /bin/packer plugins install "github.com/hashicorp/googlecompute" && \ /bin/packer plugins install "github.com/hashicorp/qemu" && \ /bin/packer plugins install "github.com/hashicorp/vagrant" && \ - /bin/packer plugins install "github.com/hashicorp/virtualbox" && \ - /bin/packer plugins install "github.com/hashicorp/vmware" && \ - /bin/packer plugins install "github.com/hashicorp/vsphere" + /bin/packer plugins install "github.com/hashicorp/virtualbox" ENTRYPOINT ["/bin/packer"] diff --git a/LICENSE b/LICENSE index 91ed1781f..1bc9ce2cf 100644 --- a/LICENSE +++ b/LICENSE @@ -3,22 +3,22 @@ License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. Parameters -Licensor: HashiCorp, Inc. +Licensor: International Business Machines Corporation (IBM) Licensed Work: Packer Version 1.10.0 or later. The Licensed Work is (c) 2024 - HashiCorp, Inc. + IBM Corp. Additional Use Grant: You may make production use of the Licensed Work, provided Your use does not include offering the Licensed Work to third parties on a hosted or embedded basis in order to compete with - HashiCorp's paid version(s) of the Licensed Work. For purposes + IBM Corp's paid version(s) of the Licensed Work. For purposes of this license: A "competitive offering" is a Product that is offered to third parties on a paid basis, including through paid support arrangements, that significantly overlaps with the capabilities - of HashiCorp's paid version(s) of the Licensed Work. If Your + of IBM Corp's paid version(s) of the Licensed Work. If Your Product is not a competitive offering when You first make it generally available, it will not become a competitive offering - later due to HashiCorp releasing a new version of the Licensed + later due to IBM Corp releasing a new version of the Licensed Work with additional capabilities. In addition, Products that are not provided on a paid basis are not competitive. @@ -34,10 +34,10 @@ Additional Use Grant: You may make production use of the Licensed Work, provided Hosting or using the Licensed Work(s) for internal purposes within an organization is not considered a competitive - offering. HashiCorp considers your organization to include all + offering. IBM Corp considers your organization to include all of your affiliates under common control. - For binding interpretive guidance on using HashiCorp products + For binding interpretive guidance on using IBM Corp products under the Business Source License, please visit our FAQ. (https://www.hashicorp.com/license-faq) Change Date: Four years from the date the Licensed Work is published. diff --git a/provisioner/powershell/provisioner.go b/provisioner/powershell/provisioner.go index 2fb5420b3..8696f3fa2 100644 --- a/provisioner/powershell/provisioner.go +++ b/provisioner/powershell/provisioner.go @@ -55,7 +55,7 @@ const wrapPowershellString string = ` $exitCode = 1 } - if ($LASTEXITCODE -ne $null -and $LASTEXITCODE -ne 0) { + if ((Test-Path variable:global:LASTEXITCODE) -and $LASTEXITCODE -ne $null -and $LASTEXITCODE -ne 0) { $exitCode = $LASTEXITCODE } exit $exitCode diff --git a/provisioner/powershell/provisioner_test.go b/provisioner/powershell/provisioner_test.go index 1ae9f7992..9ea318a37 100644 --- a/provisioner/powershell/provisioner_test.go +++ b/provisioner/powershell/provisioner_test.go @@ -36,7 +36,7 @@ func TestProvisionerPrepare_extractScript(t *testing.T) { // File contents should contain 2 lines concatenated by newlines: foo\nbar readFile, err := os.ReadFile(file) - expectedContents := "if (Test-Path variable:global:ProgressPreference) {\n set-variable -name variable:global:ProgressPreference -value 'SilentlyContinue'\n }\n \n $exitCode = 0\n try {\n $env:PACKER_BUILDER_TYPE=\"\"; $env:PACKER_BUILD_NAME=\"\"; \n foo\n bar\n \n $exitCode = 0\n } catch {\n Write-Error \"An error occurred: $_\"\n $exitCode = 1\n }\n \n if ($LASTEXITCODE -ne $null -and $LASTEXITCODE -ne 0) {\n $exitCode = $LASTEXITCODE\n }\n exit $exitCode" + expectedContents := "if (Test-Path variable:global:ProgressPreference) {\n set-variable -name variable:global:ProgressPreference -value 'SilentlyContinue'\n }\n \n $exitCode = 0\n try {\n $env:PACKER_BUILDER_TYPE=\"\"; $env:PACKER_BUILD_NAME=\"\"; \n foo\n bar\n \n $exitCode = 0\n } catch {\n Write-Error \"An error occurred: $_\"\n $exitCode = 1\n }\n \n if ((Test-Path variable:global:LASTEXITCODE) -and $LASTEXITCODE -ne $null -and $LASTEXITCODE -ne 0) {\n $exitCode = $LASTEXITCODE\n }\n exit $exitCode" normalizedExpectedContent := normalizeWhiteSpace(expectedContents) if err != nil { t.Fatalf("Should not be error: %s", err) diff --git a/version/VERSION b/version/VERSION index 70139d329..3e192b03c 100644 --- a/version/VERSION +++ b/version/VERSION @@ -1 +1 @@ -1.14.4-dev +1.15.1-dev