Skip to content

configs: Deprecate nested redundant interpolations#26339

Merged
alisdair merged 1 commit intov0.13from
alisdair/deprecate-nested-redundant-interpolation-expressions-013
Sep 22, 2020
Merged

configs: Deprecate nested redundant interpolations#26339
alisdair merged 1 commit intov0.13from
alisdair/deprecate-nested-redundant-interpolation-expressions-013

Conversation

@alisdair
Copy link
Copy Markdown
Contributor

Backport of #26334 to v0.13. Will update the "upgrade notes" section about these deprecations in the changelog.

Previous deprecations only included direct assignment of template-only
expressions to arguments. That is, this was not deprecated:

locals {
  foo = ["${var.foo}"]
}

This commit uses hclsyntax.VisitAll to detect and show deprecations for
all template-only expressions, no matter how deep they are in a given
expression.
@alisdair alisdair requested a review from a team September 22, 2020 18:15
@alisdair alisdair self-assigned this Sep 22, 2020
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 22, 2020

Codecov Report

Merging #26339 into v0.13 will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
configs/compat_shim.go 93.65% <100.00%> (+0.31%) ⬆️
internal/providercache/dir.go 66.66% <0.00%> (-6.25%) ⬇️

@alisdair alisdair merged commit f51b273 into v0.13 Sep 22, 2020
@alisdair alisdair deleted the alisdair/deprecate-nested-redundant-interpolation-expressions-013 branch September 22, 2020 19:30
@ghost
Copy link
Copy Markdown

ghost commented Oct 23, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators Oct 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants