mercari / hcledit

Go package to edit HCL configuration
MIT License
49 stars 15 forks source link

Bump github.com/hashicorp/hcl/v2 from 2.9.1 to 2.10.1 #55

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 3 years ago

Bumps github.com/hashicorp/hcl/v2 from 2.9.1 to 2.10.1.

Release notes

Sourced from github.com/hashicorp/hcl/v2's releases.

v2.10.1 (July 21, 2021)

  • dynblock: Decode unknown dynamic blocks in order to obtain any diagnostics even though the decoded value is not used (#476)
  • hclsyntax: Calling functions is now more robust in the face of an incorrectly-implemented function which returns a function.ArgError whose argument index is out of range for the length of the arguments. Previously this would often lead to a panic, but now it'll return a less-precice error message instead. Functions that return out-of-bounds argument indices still ought to be fixed so that the resulting error diagnostics can be as precise as possible. (#472)
  • hclsyntax: Ensure marks on unknown values are maintained when processing string templates. (#478)
  • hcl: Improved error messages for various common error situtions in hcl.Index and hcl.GetAttr. These are part of the implementation of indexing and attribute lookup in the native syntax expression language too, so the new error messages will apply to problems using those operators. (#474)

v2.10.0 (April 20, 2021)

Enhancements

  • dynblock,hcldec: Using dynblock in conjunction with hcldec can now decode blocks with unknown dynamic for_each arguments as entirely unknown values (#461)
  • hclsyntax: Some syntax errors during parsing of the inside of ${ ... } template interpolation sequences will now produce an extra hint message about the need to escape as $${ when trying to include interpolation syntax for other languages like shell scripting, AWS IAM policies, etc. (#462)
Changelog

Sourced from github.com/hashicorp/hcl/v2's changelog.

v2.10.1 (July 21, 2021)

  • dynblock: Decode unknown dynamic blocks in order to obtain any diagnostics even though the decoded value is not used (#476)
  • hclsyntax: Calling functions is now more robust in the face of an incorrectly-implemented function which returns a function.ArgError whose argument index is out of range for the length of the arguments. Previously this would often lead to a panic, but now it'll return a less-precice error message instead. Functions that return out-of-bounds argument indices still ought to be fixed so that the resulting error diagnostics can be as precise as possible. (#472)
  • hclsyntax: Ensure marks on unknown values are maintained when processing string templates. (#478)
  • hcl: Improved error messages for various common error situtions in hcl.Index and hcl.GetAttr. These are part of the implementation of indexing and attribute lookup in the native syntax expression language too, so the new error messages will apply to problems using those operators. (#474)

v2.10.0 (April 20, 2021)

Enhancements

  • dynblock,hcldec: Using dynblock in conjunction with hcldec can now decode blocks with unknown dynamic for_each arguments as entirely unknown values (#461)
  • hclsyntax: Some syntax errors during parsing of the inside of ${ ... } template interpolation sequences will now produce an extra hint message about the need to escape as $${ when trying to include interpolation syntax for other languages like shell scripting, AWS IAM policies, etc. (#462)
Commits
  • 0827c2f update CHANGELOG.md
  • 82cdaa7 Merge pull request #476 from hashicorp/jbardin/decode-unknown-dynblock
  • 19e7232 Merge pull request #478 from hashicorp/jbardin/string-template-unknown-marks
  • 868335a hclsyntax: maintain marks from unknown values
  • abe9c89 decode unknown blocks to ensure they are valid
  • 2eb4e9f Update CHANGELOG.md
  • a4e3f26 hcl: More helpful error messages in Index and GetAttr
  • a97795a hclsyntax: Fix incorrect examples of object expressions in the spec
  • 327f3ce Update CHANGELOG.md
  • f6e7bb7 hclsyntax: Don't panic when function returns invalid ArgError
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)