Skip to content

Comments

make deprecation origin addr as precise as possible#38122

Merged
DanielMSchmidt merged 3 commits intomainfrom
make-deprecation-origin-absolute
Feb 11, 2026
Merged

make deprecation origin addr as precise as possible#38122
DanielMSchmidt merged 3 commits intomainfrom
make-deprecation-origin-absolute

Conversation

@DanielMSchmidt
Copy link
Contributor

@DanielMSchmidt DanielMSchmidt commented Feb 4, 2026

Fixes #

Target Release

1.15.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@DanielMSchmidt DanielMSchmidt requested a review from a team as a code owner February 4, 2026 13:35
@DanielMSchmidt DanielMSchmidt added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Feb 4, 2026
@jbardin
Copy link
Member

jbardin commented Feb 4, 2026

I think what you had might have been optimal already. When talking about use of deprecated attributes, it's based on the resource schema and what is written in the configuration. Configuration is only written as unexpanded blocks, and the source of deprecated values can't change based on individual instances because the resource name and schema is always the same.

dsa0x
dsa0x previously approved these changes Feb 4, 2026
@DanielMSchmidt
Copy link
Contributor Author

@jbardin it would make sense to use at least config addresses as the basis for the extra info string, right?

@jbardin
Copy link
Member

jbardin commented Feb 5, 2026

Oh! I see what you mean. I was reading that as if you had config addresses and wanted to refine them to instances. Yeah, using ConfigResource matches most closely to how a user would be thinking about the config location, and at least for resources we have addr.InModule for that. The module call will take a little more fiddling to get rid of the instance part, but we should probably do it there for consistency, since the deprecation doesn't come from only a single instance, but the definition in the config.

(and just a style note, %s and %q use the fmt.Stringer interface, so you don't need the String() call on all the arguments)

@DanielMSchmidt DanielMSchmidt force-pushed the make-deprecation-origin-absolute branch from dcf53fe to 0313c2f Compare February 11, 2026 10:50
@DanielMSchmidt DanielMSchmidt enabled auto-merge (rebase) February 11, 2026 15:06
@DanielMSchmidt DanielMSchmidt merged commit c1f6360 into main Feb 11, 2026
17 of 19 checks passed
@DanielMSchmidt DanielMSchmidt deleted the make-deprecation-origin-absolute branch February 11, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants