Commit graph

18896 commits

Author SHA1 Message Date
kp2099
e703473a9b
Merge pull request #13467 from hashicorp/karthik/release_1.14.2
release 1.14.2.
2025-09-09 16:13:43 +05:30
karthik P
93b1f94fb1 Merge branch 'main' into karthik/release_1.14.2 2025-09-09 16:01:53 +05:30
kp2099
a9d1dcdc32
Changelog update to include sdk changes (#13468)
* updating changelog to include #298

* updating changelog to include #300
2025-09-09 16:00:40 +05:30
karthik P
bd05708d70 backporting changes from main to this branch for v1.14.2 release 2025-09-09 14:42:53 +05:30
kp2099
8096a8c71c
Merge pull request #13465 from hashicorp/karthik/version_prep_1.14.2
updating version + changelog for v1.14.2 release
2025-09-09 14:12:00 +05:30
karthik P
d23da9806e updating versiun + changelog 2025-09-09 14:00:56 +05:30
kp2099
f0ba8162ed
Merge pull request #13462 from hashicorp/karthik/dependency/upgrade/packer-plugin-sdk
bumping github.com/hashicorp/packer-plugin-sdk from v0.6.2 to v0.6.3
2025-09-08 18:10:38 +05:30
karthik P
9a14670eea bumping github.com/hashicorp/packer-plugin-sdk from v0.6.2 to v0.6.3 2025-09-08 17:34:01 +05:30
kp2099
a809cb45a3
Merge pull request #13461 from hashicorp/karthik/dependency/upgrade/xz
bumping github.com/ulikunitz/xz from v0.5.10 to v0.5.15
2025-09-08 16:46:27 +05:30
karthik P
34cbd9df3f bumping github.com/ulikunitz/xz from v0.5.10 to v0.5.15 2025-09-08 16:36:00 +05:30
kp2099
f8bdee74ed
Merge pull request #13460 from hashicorp/dependabot/go_modules/packer_test/common/plugin_tester/golang.org/x/oauth2-0.27.0
build(deps): bump golang.org/x/oauth2 from 0.13.0 to 0.27.0 in /packer_test/common/plugin_tester
2025-09-08 15:54:58 +05:30
dependabot[bot]
3c898a145e
build(deps): bump golang.org/x/oauth2
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.13.0 to 0.27.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.13.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-version: 0.27.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 10:15:04 +00:00
kp2099
37b5efd4d3
Merge pull request #13459 from hashicorp/dependabot/go_modules/packer_test/common/plugin_tester/github.com/ulikunitz/xz-0.5.14
build(deps): bump github.com/ulikunitz/xz from 0.5.10 to 0.5.14 in /packer_test/common/plugin_tester
2025-09-08 15:39:34 +05:30
dependabot[bot]
1d834d5d9a
build(deps): bump github.com/ulikunitz/xz
Bumps [github.com/ulikunitz/xz](https://github.com/ulikunitz/xz) from 0.5.10 to 0.5.14.
- [Commits](https://github.com/ulikunitz/xz/compare/v0.5.10...v0.5.14)

---
updated-dependencies:
- dependency-name: github.com/ulikunitz/xz
  dependency-version: 0.5.14
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 10:04:54 +00:00
kp2099
a3b3139883
Merge pull request #13438 from hashicorp/packer-plugin-release-notice
Add callouts for the move of HashiCorp-maintained plugins to releases.hashicorp.com
2025-09-08 15:02:29 +05:30
kp2099
08fec48477
Merge pull request #13453 from sbraz/fix_spacing
hcl2template: fix spacing in error message
2025-09-04 12:17:25 +05:30
Louis Sautier
963c368c31
hcl2template: fix spacing in error message
Before this fix, the error message looked like:
```
A source type is made of three parts that aresplit by a dot `.`; each part must
start with a letter and may contain only letters, digits, underscores, and
dashes.A valid source reference looks like: `source.type.name`
```
2025-08-27 19:26:27 +02:00
Leah Bush
9b6cc86978 feat: upgrade node to v22 2025-08-20 08:34:00 -07:00
kp2099
4dd1fef558
removing $result from wrapper string (#13451)
* removing $result from wrapper

* test fixes
2025-08-19 16:57:54 +05:30
Jenna Goldstrich
40bea58c92
Fix incorrect Credential file default path in docs (#13447)
should be ~/.config/hcp/cred_file.json
2025-08-13 15:26:45 +05:30
Jenna Goldstrich
8a376a8845
HCP Certificate Authentication Support (#13435)
* Add support for using a certificate file instead of HCP Client Credentials to authenticate to HashiCorp Cloud Platform

* Docs

* Change certificate auth warnings to print to stdio

* rough draft docs

* Update comments

* Parse home directory correctly, default directory certs don't work before this

* cred-file => cred_file, and add unit test

* Fix invalid log, and use full path in log messages and error messages

* Fix original file not being reset in unit test

* Move test statements around to validate Windows behavior

* Use a 'windows friendly' path

* The issue here was the path error'd on mac and linux, but not Windows, when I swapped to the different path then nothing error'd causing everything to fail, I think this should fix it on 3 platforms

* 1.14.1 => 1.14.2
2025-08-12 10:40:55 +05:30
kp2099
ba018fd7a0
adds workflow-dispatch + sets PACKER_ACC_BUILDERS for acceptance tests (#13444)
* adds workflow-dispatch + sets PACKER_ACC_BUILDERS for acceptance tests

* adds workflow-dispatch + sets PACKER_ACC_BUILDERS for acceptance tests
2025-08-08 12:22:51 +05:30
anshulSharma
c98a15a6b7
dev version bump (#13443) 2025-08-07 15:08:02 +05:30
anshulSharma
8cb0be165d
Backport proxy fix (#13441)
* changelog update and patch release version changes (#13440)

* changelog update and patch release version changes

* typo fix

* changes for allowing proxy server to fetch release binaries (#13439)
2025-08-05 16:46:01 +05:30
anshulSharma
4ed31576eb
changelog update and patch release version changes (#13440)
* changelog update and patch release version changes

* typo fix
2025-08-05 16:15:14 +05:30
anshulSharma
b99244845a
changes for allowing proxy server to fetch release binaries (#13439) 2025-08-05 15:09:21 +05:30
Brian McClain
e69859a701
Update website/content/docs/plugins/install.mdx
Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>
2025-08-01 16:17:59 -04:00
Brian McClain
6c16dedcad Update wording to only apply to specifically listed plugins 2025-08-01 11:46:56 -04:00
Brian McClain
a522e10b29 Add callouts for the move of HashiCorp-maintained plugins to releases.hashicorp.com 2025-08-01 10:45:48 -04:00
anshulSharma
1a01c0547b
change log update for packer 1.14.0 (#13436)
* change log update for packer 1.14.0

* review suggested change

* packer version change, the one to be released
2025-07-30 10:11:49 +05:30
anshulSharma
f1f02ee505
doc changes about CRT migration (#13433)
* doc changes about CRT migration

* docs changes suggested

* docs changes suggested

* docs changes suggested

* typo fix

* typo fix
2025-07-29 18:50:21 +05:30
anshulSharma
a234126747
changes for pulling binary from releases.hashicorp.com (#13431)
* changes for pulling binary from releases.hashicorp.com

* cahnges for getting release from release official site

* cahnges for getting release from release official site

* unit test cases

* unit test cases

* unit test coverage

* changes for getter releases.hashicorp.com

* lint fix

* lint fix

* lint fix

* manifest.json related changes

* manifest.json related changes

* manifest.json related changes

* manifest.json related changes

* github getter test cases

* added test cases for getters

* added test cases for getters

* added test cases for getters

* added test cases for getters

* added test cases for getters

* added test cases for plugins getter

* unit test cases for getting release from official site

* description to the methods
2025-07-29 08:50:23 +05:30
Ryan Johnson
e45ff9b093 docs: add conditional expressions
This update adds a new section explaining conditional expressions in HCL, including syntax, usage examples, and best practices for clarity and maintainability. The documentation covers how to use conditionals for default values, dynamic argument omission, and recommends using locals for complex logic.

Ref: #12806

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
2025-07-23 11:57:16 -07:00
Nick Philbrook
d8438b06e0 Add note about *just metadata* 2025-07-14 14:08:37 -07:00
nphilbrook
517a0eac9c Update website/content/docs/templates/hcl_templates/blocks/build/hcp_packer_registry.mdx
Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
2025-07-14 14:08:37 -07:00
Nick Philbrook
d7cd980123 move hcp_packer_registry block out of the build block as per error message with current CLI 2025-07-14 14:08:37 -07:00
kp2099
7167626ca2
Merge pull request #13422 from hashicorp/karthik/seperate_default_commands
Seperating default execute commands for Inline and Scripts
2025-07-01 11:35:42 +05:30
Jenna Goldstrich
2fd2d7207c Bump go-git 2025-06-26 16:40:08 -07:00
Tanmay Jain
ee2330683f
Merge pull request #13388 from hashicorp/log-fix
Populating the PackerSensitiveVars variable
2025-06-25 09:10:18 +05:30
Tanmay Jain
24d73a2b6a Fixed Test Cases 2025-06-24 21:36:50 +05:30
Tanmay Jain
99b8f98a8b Updating a log to prevent secret leaks 2025-06-24 21:36:50 +05:30
Tanmay Jain
04dc274eaa IMPROV: Populating the PackerSensitiveVars variable 2025-06-24 21:36:50 +05:30
Tanmay Jain
f70933f6b5 Updating PackerSDK version 2025-06-24 21:36:50 +05:30
karthik P
19f04a2a93 fixing test cases 2025-06-24 19:54:58 +05:30
karthik P
43d7b468de Separate out the default execute commands for Inline and Scripts 2025-06-24 18:32:43 +05:30
Lucas Bajolet
4cd7ad4721
hcl2template: err on malformed local/data dep (#13340)
* hcl2template: err on malformed local/data dep

When introducing the DAG for locals and datasources, we forgot to handle
one limit case: if a dependency for a local or data is malformed, we
didn't check that a vertex was associated to it, leading to the final
DAG being malformed, and the DAG library would crash in this case.

This commit fixes this problem by checking that the dependency does
exist before attempting to add it to the graph as an edge for a vertex,
so that it is reported accurately, and do that Packer doesn't crash.

* error message change

---------

Co-authored-by: anshul sharma <anshul.sharma@hashicorp.com>
2025-06-17 09:22:09 +05:30
tanmay-hc
65c2eb0469
Merge pull request #13409 from bartdorlandt/patch-1
Fix typo
2025-06-12 11:28:02 +05:30
Bart Dorlandt
548a0376ff
Fix typo 2025-06-07 15:17:50 +02:00
kp2099
f829fd9669
prepare version 1.13.2-dev (#13408) 2025-06-06 15:43:28 +05:30
kp2099
86e50a3e04
Merge pull request #13404 from hashicorp/karthik/prepare_version_1.13.1
prepare version 1.13.1
2025-06-06 12:48:21 +05:30