From 2ccf4a2250758e72595ec28d771134631fbc3e8c Mon Sep 17 00:00:00 2001 From: anshul sharma Date: Wed, 6 Aug 2025 14:37:15 +0530 Subject: [PATCH 1/9] removing the vmware and vshpehere from packer's docker full image --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e7146a888..eedf08da0 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"] From f9abca0bd7ece7680ad508aa77362d434df69958 Mon Sep 17 00:00:00 2001 From: Matthew Bradbury Date: Wed, 26 Nov 2025 12:04:42 +0000 Subject: [PATCH 2/9] Check LASTEXITCODE is set before checking its value --- provisioner/powershell/provisioner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner/powershell/provisioner.go b/provisioner/powershell/provisioner.go index ea54c7576..444a38111 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 From 4da6b47a1784db955e81a1e904d98d9a19f37f86 Mon Sep 17 00:00:00 2001 From: Matthew Bradbury Date: Fri, 12 Dec 2025 21:54:03 +0000 Subject: [PATCH 3/9] Fix test --- provisioner/powershell/provisioner_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner/powershell/provisioner_test.go b/provisioner/powershell/provisioner_test.go index 1d9a1f9bf..f0f19301a 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) From 5fc98d9e4eb6acba0860ff93b06b969b36e22816 Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Wed, 28 Jan 2026 12:14:53 +0530 Subject: [PATCH 4/9] Updates Go version to 1.24.12 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 95ae5a99b..590fde5c0 100644 --- a/go.mod +++ b/go.mod @@ -200,6 +200,6 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -go 1.24.0 +go 1.24.12 replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.13.3 // added by packer-sdc fix as noted in github.com/hashicorp/packer-plugin-sdk/issues/187 From 17bc81ea6c0394ca686845b229d61d0b620fc0d3 Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Wed, 4 Feb 2026 10:56:10 +0530 Subject: [PATCH 5/9] version: cut release v1.15.0 --- CHANGELOG.md | 35 +++++++++++++++++++++++++++++++++++ version/VERSION | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) 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/version/VERSION b/version/VERSION index 70139d329..141f2e805 100644 --- a/version/VERSION +++ b/version/VERSION @@ -1 +1 @@ -1.14.4-dev +1.15.0 From 708f7489118a32ce39455d00b4a135b059da7e29 Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Wed, 4 Feb 2026 13:07:19 +0530 Subject: [PATCH 6/9] version: prepare dev v1.15.1 --- version/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/VERSION b/version/VERSION index 141f2e805..3e192b03c 100644 --- a/version/VERSION +++ b/version/VERSION @@ -1 +1 @@ -1.15.0 +1.15.1-dev From d7abe43ccc9e7698cd843d765e40545a5fb3c3e7 Mon Sep 17 00:00:00 2001 From: kp2099 Date: Tue, 17 Feb 2026 20:03:11 +0530 Subject: [PATCH 7/9] go-git package upgrade --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 590fde5c0..64f0a6691 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/cheggaaa/pb v1.0.27 github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e github.com/dsnet/compress v0.0.1 - github.com/go-git/go-git/v5 v5.16.2 + github.com/go-git/go-git/v5 v5.16.5 github.com/go-openapi/runtime v0.26.2 github.com/gobwas/glob v0.2.3 github.com/gofrs/flock v0.8.1 // indirect diff --git a/go.sum b/go.sum index 4756dae40..8f6258fab 100644 --- a/go.sum +++ b/go.sum @@ -138,6 +138,8 @@ github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMj github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= github.com/go-git/go-git/v5 v5.16.2 h1:fT6ZIOjE5iEnkzKyxTHK1W4HGAsPhqEqiSAssSO77hM= github.com/go-git/go-git/v5 v5.16.2/go.mod h1:4Ge4alE/5gPs30F2H1esi2gPd69R0C39lolkucHBOp8= +github.com/go-git/go-git/v5 v5.16.5 h1:mdkuqblwr57kVfXri5TTH+nMFLNUxIj9Z7F5ykFbw5s= +github.com/go-git/go-git/v5 v5.16.5/go.mod h1:QOMLpNf1qxuSY4StA/ArOdfFR2TrKEjJiye2kel2m+M= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-jose/go-jose/v4 v4.0.5 h1:M6T8+mKZl/+fNNuFHvGIzDz7BTLQPIounk/b9dw3AaE= github.com/go-jose/go-jose/v4 v4.0.5/go.mod h1:s3P1lRrkT8igV8D9OjyL4WRyHvjB6a4JSllnOrmmBOA= From e4108562bcb3b0fa2b6e48dc9eb481ec9507e160 Mon Sep 17 00:00:00 2001 From: creatorHead Date: Wed, 11 Mar 2026 11:50:07 +0530 Subject: [PATCH 8/9] Update LICENSE --- LICENSE | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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. From 6210b0a4cef0eac78ad9ac4721f8553070d7e994 Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Wed, 11 Mar 2026 12:49:56 +0530 Subject: [PATCH 9/9] Updates circl dependency to v1.6.3 Brings in latest upstream improvements and bug fixes from circl. Helps maintain compatibility and security with indirect dependencies. --- go.mod | 2 +- go.sum | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 64f0a6691..575f00b67 100644 --- a/go.mod +++ b/go.mod @@ -92,7 +92,7 @@ require ( github.com/bodgit/windows v1.0.1 // indirect github.com/cenkalti/backoff/v3 v3.2.2 // indirect github.com/chzyer/test v1.0.0 // indirect - github.com/cloudflare/circl v1.6.1 // indirect + github.com/cloudflare/circl v1.6.3 // indirect github.com/cyphar/filepath-securejoin v0.4.1 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/dylanmei/iso8601 v0.1.0 // indirect diff --git a/go.sum b/go.sum index 8f6258fab..8966484dc 100644 --- a/go.sum +++ b/go.sum @@ -99,8 +99,8 @@ github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38 github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudflare/circl v1.6.1 h1:zqIqSPIndyBh1bjLVVDHMPpVKqp8Su/V+6MeDzzQBQ0= -github.com/cloudflare/circl v1.6.1/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs= +github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8= +github.com/cloudflare/circl v1.6.3/go.mod h1:2eXP6Qfat4O/Yhh8BznvKnJ+uzEoTQ6jVKJRn81BiS4= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cyphar/filepath-securejoin v0.4.1 h1:JyxxyPEaktOD+GAnqIqTf9A8tHyAG22rowi7HkoSU1s= github.com/cyphar/filepath-securejoin v0.4.1/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI= @@ -136,8 +136,6 @@ github.com/go-git/go-billy/v5 v5.6.2 h1:6Q86EsPXMa7c3YZ3aLAQsMA0VlWmy43r6FHqa/UN github.com/go-git/go-billy/v5 v5.6.2/go.mod h1:rcFC2rAsp/erv7CMz9GczHcuD0D32fWzH+MJAU+jaUU= github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4= github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= -github.com/go-git/go-git/v5 v5.16.2 h1:fT6ZIOjE5iEnkzKyxTHK1W4HGAsPhqEqiSAssSO77hM= -github.com/go-git/go-git/v5 v5.16.2/go.mod h1:4Ge4alE/5gPs30F2H1esi2gPd69R0C39lolkucHBOp8= github.com/go-git/go-git/v5 v5.16.5 h1:mdkuqblwr57kVfXri5TTH+nMFLNUxIj9Z7F5ykFbw5s= github.com/go-git/go-git/v5 v5.16.5/go.mod h1:QOMLpNf1qxuSY4StA/ArOdfFR2TrKEjJiye2kel2m+M= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=