Commit Graph

369 Commits (dependabot/github-actions-updates)

Author SHA1 Message Date
Lucas Bajolet dff49df129 hcl2template: check bucket name at parse-time
2 years ago
Devashish 682eca2877 Remove repeated code
2 years ago
Devashish 4b591d6937 Add PR suggestions
2 years ago
Devashish b77d581cda Add the deprecation warning and update docs
2 years ago
Devashish cbc16cfed5 Add versionFingerprint to EvalContext
2 years ago
Wilken Rivera 263821ac25 hcl2template/functions: Add Non-null refinements for various functions
2 years ago
Lucas Bajolet 8c7b97331b hcl2: don't show an empty source on var errors
2 years ago
Lucas Bajolet efe182b221 packer: link to docs if a component is missing
2 years ago
Lucas Bajolet 434a1637f8 hcl2template: fix func to get vars from a config
3 years ago
Lucas Bajolet 51ec78622d hcl2template: simplify startDatasource function
3 years ago
Lucas Bajolet d9259d6d12 hcl2template: extract attr filter code from ds
3 years ago
Lucas Bajolet 14b6ad10fe hcl2template: report localtion for cycle detection
3 years ago
Lucas Bajolet 2a6ccaccab hcl2template: simplify datasource evaluation
3 years ago
Lucas Bajolet 8438d81d4d hcl2template: remove unused shouldContinue bool
3 years ago
guoguangwu 7eb6a45cd4 chore: remove refs to deprecated io/ioutil
3 years ago
guoguangwu 324e628b86 chore: unnecessary use of fmt.Sprintf
3 years ago
Lucas Bajolet 318529f373 hcl2template: remove value validation for locals
3 years ago
Lucas Bajolet eb9e1a4795 packer: remove implicit required plugins
3 years ago
hashicorp-copywrite[bot] 19055df3ec
[COMPLIANCE] License changes (#12568)
3 years ago
Wilken Rivera 9ccec0d4d5
Removed repetitive statement from HCP debug logs (#12552)
3 years ago
Lucas Bajolet a2930bda4f packer: warn on bundled plugins usage
3 years ago
Lucas Bajolet 456bc2397b hcl2template: only warn once for missing plugins
3 years ago
Wilken Rivera eca75a6847 Run make fmt to fix checks
3 years ago
Lucas Bajolet f1a41b488f packer: add HCL2 support for telemetry
3 years ago
hashicorp-copywrite[bot] b7df3ca36f
[COMPLIANCE] Add Copyright and License Headers (#12254)
3 years ago
Lucas Bajolet 4d559e23b7
hcl2: don't warn on excluded post-processor (#12187)
3 years ago
Lucas Bajolet ca197afe9b hcp: remove superfluous return value on GetBuilds
3 years ago
Wilken Rivera 9002ac263f
Update BuildBlock with valid HCL2Ref (#12167)
3 years ago
Wilken Rivera 57cbe4e203
core: Update validation options for undeclared variables (#12104)
3 years ago
Wilken Rivera 606e6c48f1 internal: reorganise registry/HCP code
3 years ago
Lucas Bajolet 1cee460d0d hcp: extract all HCP-related code to hcp package
3 years ago
Lucas Bajolet dad07c6097 hcp: keep map of build names for hcp tracking
3 years ago
Lucas Bajolet f3e4c2c3bb tmp: move HCP logic to unwrap builds/post
3 years ago
Lucas Bajolet 61c810e720 command: rework HCP-related error messages
4 years ago
Lucas Bajolet c0e7e7bd3c hcl2: report error on build without sources
4 years ago
Lucas Bajolet 61c56e161c hcl2: add example for undefined variable set warn
4 years ago
Eng Zer Jun f5ec0f1c57 test: use `T.Setenv` to set env vars in tests
4 years ago
Lucas Bajolet a298617ecb command/build: warn and exit when nothing to build
4 years ago
Lucas Bajolet 7cd095062a parser: extract HCP logic out of the HCL parser
4 years ago
Sylvia Moss 5c3d5c1295
Send channel id to HCP Packer (#11861)
4 years ago
Lucas Bajolet 6ab16561b5
hcl2: fix crash on malformed overrides (#11881)
4 years ago
Lucas Bajolet 6794c6053a
hcl2template: only iterate on known HCP datasource (#11883)
4 years ago
Wilken Rivera 846e4e6443
Associate Packer build to HCP Packer parent iteration (#11832)
4 years ago
Adrien Delorme e03ad29ca0
Sanitize var code (#11566)
4 years ago
Wilken Rivera 2ad15617cc
core/hcl2: Fix issue preventing builds from pausing between provisioners when the `--debug` argument has been passed (#11537)
4 years ago
Adrien Delorme 5d17d7fe65
prevent duplicate local block creation (#11534)
4 years ago
teddylear 1d01ad3651
feat: print all locals errors when there is a circular error (#11527)
4 years ago
Wilken Rivera 760169b34e
Move to using ectx to preload build names (#11432)
4 years ago
Wilken Rivera 4a0fbd911a
Add support for variable interpolation to hcp_packer_registry and build blocks. (#11421)
4 years ago
Wilken Rivera 06b35c39de
hcp packer registry build labels (#11401)
4 years ago
Adrien Delorme 710d109c55
HCL2: fix a crash when an HCL2 component is nil after a misconfiguration (#11382)
5 years ago
Megan Marsh e3719dd8a4
Merge pull request #11319 from hashicorp/add_iteration_id
5 years ago
Megan Marsh b763b79d9f implement contextual variable packer.iteration_id
5 years ago
Megan Marsh e7ba4d390d
Merge pull request #11318 from hashicorp/fix_source_accessor
5 years ago
Megan Marsh 76c1059680 add tests, and simplify code
5 years ago
Adrien Delorme 254e020b08
Allow to use build variables in a post processor (#11323)
5 years ago
Adrien Delorme 3135714465
rename all things 'inexist[e|a]nt' to 'nonexistent' & fix tests (#11325)
5 years ago
Kerim Satirli bc6f1e36e6
Fixes typos in docs (#11322)
5 years ago
Megan Marsh 961d72bb37 add iteration_id to evaluation context.
5 years ago
Megan Marsh cdde5cbbe2 fix source accessor to allow use in source block
5 years ago
Wilken Rivera b10df3abb7
Update HCP Packer registry image extraction, validation, publishing logic for registry capable plugins (#11221)
5 years ago
Megan Marsh 6c7aadf08f return diags earlier
5 years ago
Megan Marsh 295bac0c5f remove unnecessary complexity
5 years ago
Megan Marsh 20a83dff4f remove unneeded check.
5 years ago
Megan Marsh 48de1fc7da allow datasources to use other datasources
5 years ago
Megan Marsh 2d16da10e7
Merge pull request #11219 from hashicorp/rename_slug_to_bucket
5 years ago
Adrien Delorme eb8e302941
hcl2_upgrade: special case: vsphere fix (#11216)
5 years ago
Megan Marsh 4c22169c90 more test fix
5 years ago
Megan Marsh 2dd8c0dd26 fix tests
5 years ago
Megan Marsh da301ab844 make user-facing name for slug be bucket_name
5 years ago
Wilken Rivera e8b5b4b516
Fix {{packer_version}} interpolation regression (#11200)
5 years ago
Wilken Rivera a534c743cf
HCP Packer registry enabled Packer client (#11154)
5 years ago
Adrien Delorme 9d0193ac14
add possibility to use variables everywhere in post-processor blocks (#11094)
5 years ago
Yoan Blanc 36a7b28b5f
fix: print unchanged formatted file when using stdin (#11047)
5 years ago
Adrien Delorme 4be9dfd183
Say so when an only or an except option did not match anything (#11050)
5 years ago
Sergio Conde Gómez f6f2469d4d
fix: HCL "index" function now actually returns the index of the element (#11008)
5 years ago
Adrien Delorme bf939b7474 Update types.build.provisioners.go
5 years ago
Adrien Delorme 87ba7258b3
Use packer-sdc in packer + remove mapstructure-to-hcl2 & struct-markdown (#10913)
5 years ago
Adrien Delorme 03d79a2c39
HCL2 variables: split validation from getting value (#10843)
5 years ago
Adrien Delorme 77a29fc2f8
Allow to have `dynamic` blocks in a `build` block + tests (#10825)
5 years ago
Adrien Delorme 0e3fcb589b
Implicit required_plugin blocks (#10732)
5 years ago
Wilken Rivera 5e17dbeff2 Fix up regex in test
5 years ago
Adrien Delorme ff01e6715a
HCL2: add templatefile function (#10776)
5 years ago
Megan Marsh a6f907c688 tests
5 years ago
Megan Marsh f12c89bd84 add legacy_isotime function to hcl funcs
5 years ago
Megan Marsh 60c961c021
Merge pull request #10457 from teddylear/feature/recursivefmt-2
5 years ago
Adrien Delorme f32b67c3bb
Simplify error message when config file can't be "stat'd" (#10763)
5 years ago
Adrien Delorme 160d932cce remove weir "Cannot tell wether " + path + " is a directory" error
5 years ago
Adrien Delorme e0fe579837 un-remove tests
5 years ago
Adrien Delorme 8ee8420408 simplify return
5 years ago
Adrien Delorme 25ee6a19a6 flatten if a little
5 years ago
Adrien Delorme a6321ac137 remove debug line
5 years ago
Adrien Delorme 832c0f2b2a actually run fmt tests and then remove debug statements
5 years ago
teddylear 22d373c279 Adding more debug logic
5 years ago
Adrien Delorme 7d30a5d79d remove duplicate tests
5 years ago
Adrien Delorme 4e22147909 Merge remote-tracking branch 'origin/master' into pr/teddylear/10457
5 years ago
Adrien Delorme 8208f425c8 addrs: remove Plugin.ForDisplay func, the String one does the job
5 years ago
Adrien Delorme 429262030f fix paths for windows !
5 years ago
Adrien Delorme 4487152d1e cosmetic commit
5 years ago
Adrien Delorme 72e4dc4cb5 update docs to remove 'magic' required_plugin block usages
5 years ago