Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hashicorp/packer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.10.0
Choose a base ref
...
head repository: hashicorp/packer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.10.1
Choose a head ref

Commits on Dec 6, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    331015f View commit details
  2. Copy the full SHA
    0cda6b8 View commit details
  3. Replace relative links

    nywilken authored and lbajolet-hashicorp committed Dec 6, 2023
    Copy the full SHA
    5157c3f View commit details
  4. Address review feedback

    nywilken authored and lbajolet-hashicorp committed Dec 6, 2023
    Copy the full SHA
    2e883b7 View commit details
  5. Copy the full SHA
    6cf4e03 View commit details
  6. Copy the full SHA
    80e769a View commit details
  7. Apply suggestions from code review

    Co-authored-by: Lucas Bajolet <105649352+lbajolet-hashicorp@users.noreply.github.com>
    Co-authored-by: Sylvia Moss <moss@hashicorp.com>
    3 people committed Dec 6, 2023
    Copy the full SHA
    b88ced3 View commit details
  8. Copy the full SHA
    eec0818 View commit details

Commits on Jan 2, 2024

  1. Merge pull request #12753 from hashicorp/RELPLAT-955-EOY-license-upda…

    …tes-1.10.x
    
    [DO NOT MERGE UNTIL EOY] EOY license fixes v.1.10.x
    Copy the full SHA
    37efec5 View commit details

Commits on Jan 3, 2024

  1. Copy the full SHA
    d83897f View commit details
  2. Merge pull request #12770 from hashicorp/backport/bmm/upcloud-version…

    …-pin/entirely-capital-panther
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 3, 2024
    Copy the full SHA
    8ebe384 View commit details

Commits on Jan 8, 2024

  1. Copy the full SHA
    e20e705 View commit details
  2. Merge pull request #12776 from hashicorp/backport/rm_upcloud_manifest…

    …/frankly-secure-dingo
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 8, 2024
    Copy the full SHA
    2b7c3be View commit details
  3. backport of commit 1a47597

    nywilken committed Jan 8, 2024
    Copy the full SHA
    983b461 View commit details
  4. backport of commit 9eb9db2

    nywilken committed Jan 8, 2024
    Copy the full SHA
    b3144df View commit details
  5. backport of commit 4d953a3

    nywilken committed Jan 8, 2024
    Copy the full SHA
    1a17d10 View commit details
  6. Merge pull request #12778 from hashicorp/backport/nywilken/bump-go-de…

    …ps/weekly-healthy-whale
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 8, 2024
    Copy the full SHA
    86b76ec View commit details
  7. Copy the full SHA
    6c28010 View commit details

Commits on Jan 9, 2024

  1. Merge pull request #12780 from hashicorp/backport/dependabot/go_modul…

    …es/github.com/hashicorp/hcp-sdk-go-0.79.0/slightly-optimal-cattle
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 9, 2024
    Copy the full SHA
    e191890 View commit details
  2. backport of commit bc501aa

    nywilken committed Jan 9, 2024
    Copy the full SHA
    8f270d8 View commit details

Commits on Jan 10, 2024

  1. Merge pull request #12783 from hashicorp/backport/deps/cloudflare_cir…

    …cl_1.3.7/literally-meet-stinkbug
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 10, 2024
    Copy the full SHA
    080e2b8 View commit details

Commits on Jan 17, 2024

  1. backport of commit cffc3f0

    nywilken committed Jan 17, 2024
    Copy the full SHA
    5453d05 View commit details
  2. backport of commit cffc3f0

    nywilken committed Jan 17, 2024
    Copy the full SHA
    61b7739 View commit details
  3. Merge pull request #12790 from hashicorp/backport/update/migrate_scal…

    …eway_and_mondoo_integration/exactly-exciting-ape
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 17, 2024
    Copy the full SHA
    6daed0e View commit details
  4. Merge pull request #12791 from hashicorp/backport/update/migrate_scal…

    …eway_and_mondoo_integration/utterly-subtle-cat
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 17, 2024
    Copy the full SHA
    e9528a6 View commit details
  5. Copy the full SHA
    b9b48d7 View commit details

Commits on Jan 19, 2024

  1. Merge pull request #12793 from hashicorp/backport/dependabot/go_modul…

    …es/github.com/hashicorp/hcp-sdk-go-0.81.0/formerly-smashing-javelin
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 19, 2024
    Copy the full SHA
    87b5f56 View commit details

Commits on Jan 24, 2024

  1. Migrate HCP Packer to API V2 and new nomenclature changes (#12799)

    * add hcp packer new nomenclature updates
    
    * Update docs with nomenclature changes
    
    * Update navigation bar links
    
    * Bump github.com/hashicorp/hcp-sdk-go from 0.81.0 to 0.82.0
    
    * fix acceptance test template
    
    ---------
    
    Co-authored-by: Devashish <dgpatel2910@gmail.com>
    Co-authored-by: sylviamoss <moss@hashicorp.com>
    3 people authored Jan 24, 2024
    Copy the full SHA
    7faaa9b View commit details

Commits on Jan 25, 2024

  1. backport of commit af16a89

    nywilken committed Jan 25, 2024
    Copy the full SHA
    cf06757 View commit details
  2. backport of commit 5e86b25

    nywilken committed Jan 25, 2024
    Copy the full SHA
    464ac2d View commit details
  3. backport of commit abed2f6

    Wilken Rivera authored Jan 25, 2024
    Copy the full SHA
    d8e22d8 View commit details
  4. Merge pull request #12801 from hashicorp/backport/nywilken/hcp-packer…

    …-non-compliant-plugin-error/internally-sound-egret
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 25, 2024
    Copy the full SHA
    99e55c3 View commit details

Commits on Jan 26, 2024

  1. Copy the full SHA
    c3df508 View commit details
  2. Copy the full SHA
    10f4c64 View commit details
  3. Copy the full SHA
    71d3212 View commit details
  4. Copy the full SHA
    78c7e22 View commit details
  5. Add PR suggestions

    devashish-patel authored and lbajolet-hashicorp committed Jan 26, 2024
    Copy the full SHA
    5f322ea View commit details
  6. Remove repeated code

    devashish-patel authored and lbajolet-hashicorp committed Jan 26, 2024
    Copy the full SHA
    d2a22de View commit details

Commits on Jan 29, 2024

  1. Copy the full SHA
    b81da3b View commit details
  2. Merge pull request #12808 from hashicorp/backport/nywilken/remove-ext…

    …ernal-plugins/steadily-wired-seahorse
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 29, 2024
    Copy the full SHA
    fb528d7 View commit details
  3. Merge pull request #12811 from hashicorp/backport/heat/bug.fix/update…

    …-website-dependencies/monthly-calm-adder
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 29, 2024
    Copy the full SHA
    cba6324 View commit details

Commits on Jan 30, 2024

  1. backport of commit 5576100

    nywilken committed Jan 30, 2024
    Copy the full SHA
    d0a5dcc View commit details
  2. backport of commit 4f36d40

    nywilken committed Jan 30, 2024
    Copy the full SHA
    127ebeb View commit details
  3. Merge pull request #12816 from hashicorp/backport/nywilken/plugin-ins…

    …tall-docs/currently-possible-unicorn
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 30, 2024
    Copy the full SHA
    6246c82 View commit details
  4. Merge pull request #12817 from hashicorp/backport/changelog-1.10.1/ad…

    …versely-beloved-terrier
    
    This pull request was automerged via backport-assistant
    hc-github-team-packer authored Jan 30, 2024
    Copy the full SHA
    9251b57 View commit details
  5. Cut release 1.10.1

    Wilken Rivera authored and nywilken committed Jan 30, 2024
    Copy the full SHA
    fa76e90 View commit details
Showing with 3,497 additions and 2,293 deletions.
  1. +1 −1 .copywrite.hcl
  2. +21 −0 .github/ISSUE_TEMPLATE/plugin_integration.md
  3. +1 −1 .go-version
  4. +65 −1 CHANGELOG.md
  5. +10 −9 LICENSE
  6. +20 −4 command/build.go
  7. +4 −0 command/plugin.go
  8. +251 −0 datasource/hcp-packer-artifact/data.go
  9. +98 −0 datasource/hcp-packer-artifact/data.hcl2spec.go
  10. +10 −8 datasource/hcp-packer-image/data.go
  11. +3 −1 datasource/hcp-packer-iteration/data.go
  12. +29 −13 datasource/hcp-packer-iteration/data_acc_test.go
  13. +16 −0 datasource/hcp-packer-iteration/test-fixtures/hcp-setup-build.pkr.hcl
  14. +7 −7 datasource/hcp-packer-iteration/test-fixtures/template.pkr.hcl
  15. +149 −0 datasource/hcp-packer-version/data.go
  16. +88 −0 datasource/hcp-packer-version/data.hcl2spec.go
  17. +69 −0 datasource/hcp-packer-version/data_acc_test.go
  18. +16 −0 datasource/hcp-packer-version/test-fixtures/hcp-setup-build.pkr.hcl
  19. +33 −0 datasource/hcp-packer-version/test-fixtures/template.pkr.hcl
  20. +36 −33 go.mod
  21. +101 −115 go.sum
  22. +14 −9 hcl2template/types.packer_config.go
  23. +6 −6 internal/hcp/api/client.go
  24. +55 −0 internal/hcp/api/deprecated_client.go
  25. +79 −0 internal/hcp/api/deprecated_service.go
  26. +120 −91 internal/hcp/api/mock_service.go
  27. +0 −253 internal/hcp/api/service.go
  28. +66 −0 internal/hcp/api/service_bucket.go
  29. +93 −0 internal/hcp/api/service_build.go
  30. +35 −0 internal/hcp/api/service_channel.go
  31. +61 −0 internal/hcp/api/service_version.go
  32. +4 −4 internal/hcp/registry/artifact.go
  33. +131 −0 internal/hcp/registry/deprecated_ds_config.go
  34. +129 −0 internal/hcp/registry/ds_config.go
  35. +2 −1 internal/hcp/registry/errors.go
  36. +34 −144 internal/hcp/registry/hcl.go
  37. +8 −17 internal/hcp/registry/hcp.go
  38. +16 −16 internal/hcp/registry/json.go
  39. +2 −2 internal/hcp/registry/null_registry.go
  40. +5 −5 internal/hcp/registry/registry.go
  41. +249 −208 internal/hcp/registry/types.bucket.go
  42. +101 −103 internal/hcp/registry/types.bucket_service_test.go
  43. +51 −51 internal/hcp/registry/types.bucket_test.go
  44. +40 −42 internal/hcp/registry/types.builds.go
  45. +0 −177 internal/hcp/registry/types.iterations.go
  46. +176 −0 internal/hcp/registry/types.version.go
  47. +4 −4 internal/hcp/registry/{types.iterations_test.go → types.version_test.go}
  48. +1 −1 version/VERSION
  49. +1 −1 version/version.go
  50. +1 −0 website/.husky/pre-commit
  51. +1 −1 website/.nvmrc
  52. +1 −1 website/Dockerfile
  53. +1 −1 website/README.md
  54. +105 −0 website/content/docs/datasources/hcp/hcp-packer-artifact.mdx
  55. +3 −1 website/content/docs/datasources/hcp/hcp-packer-image.mdx
  56. +3 −1 website/content/docs/datasources/hcp/hcp-packer-iteration.mdx
  57. +96 −0 website/content/docs/datasources/hcp/hcp-packer-version.mdx
  58. +17 −11 website/content/docs/datasources/hcp/index.mdx
  59. +77 −29 website/content/docs/hcp/index.mdx
  60. +3 −1 website/content/docs/index.mdx
  61. +57 −127 website/content/docs/plugins/creation/index.mdx
  62. +1 −1 website/content/docs/plugins/install-plugins.mdx
  63. +78 −8 website/content/docs/templates/hcl_templates/contextual-variables.mdx
  64. +6 −0 website/content/partials/datasource/hcp-packer-artifact/Config-not-required.mdx
  65. +22 −0 website/content/partials/datasource/hcp-packer-artifact/Config-required.mdx
  66. +31 −0 website/content/partials/datasource/hcp-packer-artifact/DatasourceOutput.mdx
  67. +2 −2 website/content/partials/datasource/hcp-packer-image/Config-required.mdx
  68. +7 −0 website/content/partials/datasource/hcp-packer-version/Config-required.mdx
  69. +25 −0 website/content/partials/datasource/hcp-packer-version/DatasourceOutput.mdx
  70. +8 −0 website/data/docs-nav-data.json
  71. +0 −120 website/data/plugins-manifest.json
  72. +434 −649 website/package-lock.json
  73. +7 −12 website/package.json
2 changes: 1 addition & 1 deletion .copywrite.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project {
license = "BUSL-1.1"
copyright_year = 2023
copyright_year = 2024
header_ignore = [
"*.hcl2spec.go", # generated code specs, since they'll be wiped out until we support adding the headers at generation-time
"hcl2template/testdata/**",
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/plugin_integration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Plugin Integration Request
about: Open request to add your plugin as a Packer integration (https://developer.hashicorp.com/packer/integrations)
labels: integration-request
---

#### Description

A written description of your plugin along with a link to the plugin repository.

#### Integration Tier
<!--- By default all integrations are registered as community integrations.
HashiCorp Technology partners https://www.hashicorp.com/partners/find-a-partner will be registered as a partner once verified. --->

#### Checklist
- [] Has valid [`metadata.hcl`](https://github.com/hashicorp/integration-template) file in plugin repository.
- [] Has added integration scripts [packer-plugin-scaffolding](https://github.com/hashicorp/packer-plugin-scoffolding) to plugin repository.
- [] Has added top-level integration README.md file to plugin `docs` directory.
- [] All plugins components have one README.md describing their usage.
- [] Has a fully synced `.web-docs` directory ready for publishing to the integrations portal.

2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.20.11
1.20.12
66 changes: 65 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,68 @@
## 1.10.1 (Upcoming)
## 1.11.0 (Upcoming)

### NOTES:
**Breaking Change**: Support for loading single-component plugins has been removed from Packer. [GH-12785](https://github.com/hashicorp/packer/pull/12785)

### IMPROVEMENTS:
* core: remove support single-component plugins. [GH-12785](https://github.com/hashicorp/packer/pull/12785)

## 1.10.1 (January 30, 2024)

### NOTES:
* **HCP Packer** has been updated to follow an artifact-agnostic approach for
publishing and consuming built artifacts. To best support the new approach, HCP Packer components within Packer have
been updated to use the v2 nomenclature when publishing build metadata to
HCP Packer. These changes include data source components for consuming HCP
Packer stored artifacts. The data source components [hcp-packer-version](https://developer.hashicorp.com/packer/docs/datasources/hcp/hcp-packer-version)
and [hcp-packer-artifact](https://developer.hashicorp.com/packer/docs/datasources/hcp/hcp-packer-artifact) respectively replace, the now deprecated,
[hcp-packer-iteration](https://developer.hashicorp.com/packer/docs/datasources/hcp/hcp-packer-iteration)
and [hcp-packer-image](https://developer.hashicorp.com/packer/docs/datasources/hcp/hcp-packer-image)
component data sources. The added changes are compatible with all existing HCP Packer workflows and do not warrant any
immediate template changes by the user. However, we encourage all HCP Packer users to visit the updated
HCP Packer [CHANGELOG](https://developer.hashicorp.com/hcp/docs/changelog) to familiarize themselves with the nomenclature changes.
[GH-12794](https://github.com/hashicorp/packer/pull/12794) [GH-12799](https://github.com/hashicorp/packer/pull/12799)
* The `hcp-packer-image` data source has been deprecated, please use HCP Packer
Artifact data source instead.
[GH-12794](https://github.com/hashicorp/packer/pull/12794)
* The `hcp-packer-iteration` data source has been deprecated, please use HCP
Packer Version data source instead.
[GH-12794](https://github.com/hashicorp/packer/pull/12794)
* The contextual variable `packer.iterationID` has been deprecated, please use
the new contextual variable `packer.versionFingerprint`. The iterationID
represents the HCP Packer iteration that build metadata has been publish
to, with this release an Iteration is now referred to as a Version and the
ID has been replaced by the Version Fingerprint.
[GH-12803](https://github.com/hashicorp/packer/pull/12803)

### FEATURES:
* **New Data source** `hcp-packer-artifact` The HCP Packer Artifact Data Source
retrieves information about an artifact from the HCP Packer Registry.
[GH-12794](https://github.com/hashicorp/packer/pull/12794)
* **New Data source** `hcp-packer-version` The HCP Packer Version Data Source
retrieves information about HCP Packer Version from the HCP Packer.
Registry. [GH-12794](https://github.com/hashicorp/packer/pull/12794)

### SECURITY:
* core: Bump Go dependencies to address various CVEs. [GH-12777](https://github.com/hashicorp/packer/pull/12777)
* core: Bump github.com/cloudflare/circl to address GHSA-9763-4f94-gfch. [GH-12781](https://github.com/hashicorp/packer/pull/12781)

### IMPROVEMENTS:
* core: Bump github.com/hashicorp/hcp-sdk-go from 0.79.0 to 0.81.0
[GH-12792](https://github.com/hashicorp/packer/pull/12792)
[GH-12764](https://github.com/hashicorp/packer/pull/12764)
* core: Update error messaging for HCP incompatible plugin builds.
[GH-12800](https://github.com/hashicorp/packer/pull/12800)
* core: Update HCP Packer integration to use HCP Packer v2 nomenclature, with
this change HCP Packer iterations are now referred to as Versions, and
Images are now referred to as Artifacts. The data sources for interacting
with HCP Packer have been respectively renamed to align with the terminology
of Version and Artifact.
[GH-12794](https://github.com/hashicorp/packer/pull/12794)
[GH-12799](https://github.com/hashicorp/packer/pull/12799)
* core: Update spacing for flags within Help text.
[GH-12742](https://github.com/hashicorp/packer/pull/12742)
[GH-12743](https://github.com/hashicorp/packer/pull/12743)


## 1.10.0 (December 5, 2023)

19 changes: 10 additions & 9 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved.
Business Source License is a trademark of MariaDB Corporation Ab.
"Business Source License" is a trademark of MariaDB Corporation Ab.

Parameters

Licensor: HashiCorp, Inc.
Licensed Work: Packer 1.10.0. The Licensed Work is (c) 2023 HashiCorp, Inc.
Licensed Work: Packer Version 1.10.0 or later. The Licensed Work is (c) 2024
HashiCorp, Inc.
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
HashiCorps paid version(s) of the Licensed Work. For purposes
HashiCorp's paid version(s) of the Licensed Work. For purposes
of this license:

A competitive offering is a Product that is offered to third
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 HashiCorps paid version(s) of the Licensed Work. If Your
of HashiCorp'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
Work with additional capabilities. In addition, Products that
are not provided on a paid basis are not competitive.

Product means software that is offered to end users to manage
"Product" means software that is offered to end users to manage
in their own environments or offered as a service on a hosted
basis.

Embedded means including the source code or executable code
from the Licensed Work in a competitive offering. Embedded
"Embedded" means including the source code or executable code
from the Licensed Work in a competitive offering. "Embedded"
also means packaging the competitive offering in such a way
that the Licensed Work must be accessed or downloaded for the
competitive offering to operate.
@@ -85,7 +86,7 @@ Licensor or its affiliates (provided that you may use a trademark or logo of
Licensor as expressly required by this License).

TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
AN AS IS BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
TITLE.
24 changes: 20 additions & 4 deletions command/build.go
Original file line number Diff line number Diff line change
@@ -25,6 +25,10 @@ import (
"github.com/posener/complete"
)

const (
hcpReadyIntegrationURL = "https://developer.hashicorp.com/packer/integrations?flags=hcp-ready"
)

type BuildCommand struct {
Meta
}
@@ -105,13 +109,13 @@ func (c *BuildCommand) RunContext(buildCtx context.Context, cla *BuildArgs) int
return ret
}

defer hcpRegistry.IterationStatusSummary()
defer hcpRegistry.VersionStatusSummary()

err := hcpRegistry.PopulateIteration(buildCtx)
err := hcpRegistry.PopulateVersion(buildCtx)
if err != nil {
return writeDiags(c.Ui, nil, hcl.Diagnostics{
&hcl.Diagnostic{
Summary: "HCP: populating iteration failed",
Summary: "HCP: populating version failed",
Severity: hcl.DiagError,
Detail: err.Error(),
},
@@ -202,6 +206,8 @@ func (c *BuildCommand) RunContext(buildCtx context.Context, cla *BuildArgs) int
m map[string]error
}{m: make(map[string]error)}
limitParallel := semaphore.NewWeighted(cla.ParallelBuilds)

var hasPossibleIncompatibleHCPIntegration bool
for i := range builds {
if err := buildCtx.Err(); err != nil {
log.Println("Interrupted, not going to start any more builds.")
@@ -267,12 +273,13 @@ func (c *BuildCommand) RunContext(buildCtx context.Context, cla *BuildArgs) int
writeDiags(c.Ui, nil, hcl.Diagnostics{
&hcl.Diagnostic{
Summary: fmt.Sprintf(
"failed to complete HCP-enabled build %q",
"publishing build metadata to HCP Packer for %q failed",
name),
Severity: hcl.DiagError,
Detail: hcperr.Error(),
},
})
hasPossibleIncompatibleHCPIntegration = true
}

if err != nil {
@@ -384,6 +391,15 @@ func (c *BuildCommand) RunContext(buildCtx context.Context, cla *BuildArgs) int
c.Ui.Say("\n==> Builds finished but no artifacts were created.")
}

if hasPossibleIncompatibleHCPIntegration {
msg := fmt.Sprintf(`
It looks like one or more plugins in your build may be incompatible with HCP Packer.
Check that you are using an HCP Ready integration before trying again:
%s`, hcpReadyIntegrationURL)

c.Ui.Error(msg)
}

if len(errs.m) > 0 {
// If any errors occurred, exit with a non-zero exit status
ret = 1
4 changes: 4 additions & 0 deletions command/plugin.go
Original file line number Diff line number Diff line change
@@ -15,8 +15,10 @@ import (

filebuilder "github.com/hashicorp/packer/builder/file"
nullbuilder "github.com/hashicorp/packer/builder/null"
hcppackerartifactdatasource "github.com/hashicorp/packer/datasource/hcp-packer-artifact"
hcppackerimagedatasource "github.com/hashicorp/packer/datasource/hcp-packer-image"
hcppackeriterationdatasource "github.com/hashicorp/packer/datasource/hcp-packer-iteration"
hcppackerversiondatasource "github.com/hashicorp/packer/datasource/hcp-packer-version"
httpdatasource "github.com/hashicorp/packer/datasource/http"
nulldatasource "github.com/hashicorp/packer/datasource/null"
artificepostprocessor "github.com/hashicorp/packer/post-processor/artifice"
@@ -63,8 +65,10 @@ var PostProcessors = map[string]packersdk.PostProcessor{
}

var Datasources = map[string]packersdk.Datasource{
"hcp-packer-artifact": new(hcppackerartifactdatasource.Datasource),
"hcp-packer-image": new(hcppackerimagedatasource.Datasource),
"hcp-packer-iteration": new(hcppackeriterationdatasource.Datasource),
"hcp-packer-version": new(hcppackerversiondatasource.Datasource),
"http": new(httpdatasource.Datasource),
"null": new(nulldatasource.Datasource),
}
Loading