Commit Graph
18795 Commits
Author SHA1 Message Date
Martin Grogan 0794593d7b hcl: fix issue with partially named builds 2025-03-17 15:14:18 -04:00
Martin Grogan 746f394429 hcp: enable multibuild in registry 2025-03-17 11:08:31 -04:00
Martin Grogan 1096a0dc01 hcl: make top-level hcp registry mandatory for multiple build 2025-03-14 15:23:50 -04:00
Tanmay Jain cceac7f462 UPDATE: Removing the UseSequentialEvaluation flag from Fix subcommand 2025-03-11 16:52:48 -04:00
Tanmay Jain 0e49825a82 UPDATE: Added the UseSequentialEvaluation flag to the Console Test 2025-03-11 16:52:48 -04:00
Tanmay Jain 0e8668eb5f BUG: Fixed Packer Console's UseSequentialEval flag 2025-03-11 16:52:48 -04:00
Martin Grogan b1417b7f5c hcp: use GetHCPPackerRegistryBlock in the hcl module 2025-03-11 14:49:59 -04:00
Martin Grogan 5e6e1a2217 hcl: add get GetHCPPackerRegistry method to PackerConfig
This method will be used to validate and fetch the correct
HCPPackerRefistry block to be used in HCP build

hcl: check for multiple HCP Packer registry block

hcl: support for top level HCP Packer Registry

hcl: deprecation warning for build block based hcp config
2025-03-11 14:49:59 -04:00
Martin Grogan 86c8902b81 hcl: add packer_registry at root schema 2025-03-11 14:49:59 -04:00
Lucas Bajolet 8a5c6addec Makefile: bump golangci-lint to 1.60.1
Since we bumped the Go version for the project to 1.23.2, we need to
also bump the golangci-lint project to 1.60.1 in order to support it.
2025-03-07 11:18:41 -05:00
Lucas Bajolet 963eb5fc78 .go-version: bump to 1.23.2
Since the last go.mod updates require Go 1.23 and above, we bump the Go
version we use to run Packer builds.
2025-03-06 15:07:46 -05:00
Lucas Bajolet ec7bc08a62 go.mod: bump dependencies to fix vulnerabilities
golang.org/x/crypto: v0.35.0 - GO-2025-3487
github.com/go-jose/go-jose/v4: v4.0.5 - GO-2025-3485
golang.org/x/oauth2: v0.27.0 - GO-2025-3488
2025-03-06 15:07:46 -05:00
Lucas Bajolet 2157f7fe41 .github: bump backport assistant to 0.5.3
The backport assistant bot fails all the time on the current version.
While it's not clear what's the reason of the failure, this commit
bumps the version of the assistant from 0.3.4 to 0.5.3 in an attempt to
fix that problem.
2025-03-06 14:48:49 -05:00
Karthik P 1896739a4c docs: add installing plugins from a compiled binary example 2025-03-06 12:06:03 -05:00
Tanmay Jain 736a6cbc98 UPDATE: Added a note for adding forward slash while copying files 2025-03-03 16:52:08 -05:00
Martin Grogan 43383a22e2 docs: add PACKER_GETTER_READ_TIMEOUT in config 2025-03-03 16:45:04 -05:00
Martin Grogan cc610bc006 hcp: give a proper error when using conflicting build name
It was possible to put the same source 2 times in the build and when
using HCP, it would error eventually since they are considered the same
build from HCP side
2025-03-03 15:44:29 -05:00
karthik P f574090609 Adding darwin/386 as part of unsupported GOOS/GOARCH pair. 2025-02-20 11:43:28 -05:00
Lucas Bajolet 62befd70bf hcp: replace packersdk.Build by *CoreBuild
As the rest of the build process was updated to remove references to the
Build interface exposed by the SDK, we change the usage of such types in
the hcp internal package, so they are typed with *CoreBuild too.
2025-02-13 16:06:02 -05:00
Lucas Bajolet 98198b5af8 packer: make GetBuilds return *[]CoreBuild
The GetBuilds function, available on both HCL2 and legacy JSON
configuration objects, used to return the Build interface.
This typing by interface is not useful in this instance, since all the
uses of `GetBuilds' are self-contained within Packer, and we're never
using any other implementation for it than `*CoreBuild`.

We've been relying on the dynamic type for all the builds being
*CoreBuild in some places of the code, so to avoid potential surprises
in the future, we'll change the signature now so it returns only
concrete types.
2025-02-13 16:06:02 -05:00
Martin Grogan 3cc908eea6 Merge pull request #13287 from hashicorp/tsccr-auto-pinning/trusted/2025-02-01
tsccr: pin action refs to latest trusted
2025-02-12 16:12:55 -05:00
Martin Grogan f730e7d916 Merge pull request #13298 from hashicorp/dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.136.0
build(deps): bump github.com/hashicorp/hcp-sdk-go from 0.135.0 to 0.136.0
2025-02-12 16:07:23 -05:00
Martin Grogan 032ee5af4d Merge pull request #13293 from sbraz/hcl2_upgrade_command
website: fix repeated word in link to hcl2_upgrade command doc
2025-02-12 16:06:33 -05:00
dependabot[bot] c0d13348b8 build(deps): bump github.com/hashicorp/hcp-sdk-go
Bumps [github.com/hashicorp/hcp-sdk-go](https://github.com/hashicorp/hcp-sdk-go) from 0.135.0 to 0.136.0.
- [Release notes](https://github.com/hashicorp/hcp-sdk-go/releases)
- [Changelog](https://github.com/hashicorp/hcp-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcp-sdk-go/compare/v0.135.0...v0.136.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcp-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2025-02-12 19:28:33 +00:00
Martin Grogan d3ac8a810c Merge pull request #13289 from hashicorp/dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.135.0
build(deps): bump github.com/hashicorp/hcp-sdk-go from 0.131.0 to 0.135.0
2025-02-12 10:24:44 -05:00
Rose M Koron af6dbb2280 Merge pull request #13291 from hashicorp/RK/adjust-codeowners 2025-02-06 16:12:55 -08:00
Louis Sautier 665ee15689 website: fix repeated word in link to hcl2_upgrade command doc
Fixed to match what was done in
website/content/partials/from-1.5/beta-hcl2-note.mdx.

Signed-off-by: Louis Sautier <[email protected]>
2025-02-06 21:37:28 +01:00
rkoron007 f59704a1eb add access to redirects and readme 2025-02-06 10:32:32 -08:00
dependabot[bot] 9011c1ec5c build(deps): bump github.com/hashicorp/hcp-sdk-go
Bumps [github.com/hashicorp/hcp-sdk-go](https://github.com/hashicorp/hcp-sdk-go) from 0.131.0 to 0.135.0.
- [Release notes](https://github.com/hashicorp/hcp-sdk-go/releases)
- [Changelog](https://github.com/hashicorp/hcp-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/hcp-sdk-go/compare/v0.131.0...v0.135.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/hcp-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2025-02-05 19:40:08 +00:00
trujillo-adam 10fa414030 Merge pull request #13286 from hashicorp/docs/packer-seo-fy2025q4
Docs/packer seo fy2025q4
2025-02-03 10:59:36 -08:00
hashicorp-tsccr[bot] 2ce9efcdcd Result of tsccr-helper -log-level=info gha update .github/ 2025-02-01 06:03:09 +00:00
trujillo-adamandRuben Nic f46d0f6da4 Update website/content/docs/templates/legacy_json_templates/user-variables.mdx
Co-authored-by: Ruben Nic <[email protected]>
2025-01-31 14:28:18 -08:00
trujillo-adam cf716c73ed Merge pull request #13285 from hashicorp/docs/packer-seo-final-batch
remaining packer content
2025-01-31 14:27:03 -08:00
trujillo-adamandrita 3ddaae6e68 Apply suggestions from code review
Co-authored-by: rita <[email protected]>
2025-01-31 14:09:46 -08:00
trujillo-adam c310eac0cc Merge pull request #13284 from hashicorp/docs/packer-seo-functions-batch3
Docs/packer seo functions batch3
2025-01-30 11:08:48 -08:00
trujillo-adam 090b30e8a3 fix missing partials 2025-01-30 11:01:36 -08:00
trujillo-adam 0f30246355 formatting error in page desc 2025-01-30 10:37:42 -08:00
trujillo-adam 4b45e151de fixed typo in redirects 2025-01-30 10:28:12 -08:00
trujillo-adam c3df63af1e removed 'learn to' keyword phrases 2025-01-30 10:14:03 -08:00
trujillo-adamandrita 3e3459b3a8 Update website/content/docs/templates/hcl_templates/functions/encoding/base64decode.mdx
Co-authored-by: rita <[email protected]>
2025-01-30 10:06:13 -08:00
trujillo-adamandrita 06af5e646d Apply suggestions from code review
Co-authored-by: rita <[email protected]>
2025-01-30 10:05:01 -08:00
trujillo-adam cf46ce621f remaining packer content 2025-01-29 16:14:35 -08:00
trujillo-adam 8e6c32ce19 fix typo 2025-01-29 14:15:55 -08:00
trujillo-adam 0c0f7a6c41 Merge pull request #13282 from hashicorp/docs/packer-seo-templates-batch1
Docs/packer seo templates batch1
2025-01-29 10:41:19 -08:00
trujillo-adam f46a4351e6 Apply suggestions from code review 2025-01-29 10:36:05 -08:00
trujillo-adam b417abafa0 ipnet and uuid funcs 2025-01-29 10:18:14 -08:00
trujillo-adam d8fa10e6eb string functions 2025-01-29 09:51:34 -08:00
trujillo-adamandRose M Koron f86801abc6 Apply suggestions from code review
Co-authored-by: Rose M Koron <[email protected]>
2025-01-29 08:33:36 -08:00
trujillo-adam 88478059d6 Merge pull request #13283 from hashicorp/docs/packer-seo-templates-batch2
packer-seo-templates-batch2
2025-01-29 08:15:58 -08:00
trujillo-adamandBrian McClain ad18e70980 Apply suggestions from code review
Co-authored-by: Brian McClain <[email protected]>
2025-01-29 08:15:40 -08:00