Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow case insensitive prop typecheck on traversal #11266

Merged
merged 1 commit into from Nov 8, 2022
Merged

Conversation

aq17
Copy link
Contributor

@aq17 aq17 commented Nov 5, 2022

Description

Addresses some errors in #11070

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@pulumi-bot
Copy link
Contributor

pulumi-bot commented Nov 5, 2022

Changelog

[uncommitted] (2022-11-08)

Features

  • [programgen] More programs can be converted to Pulumi when using pulumi convert, provider bridging, and conversion tools by allowing property accesses and field names to fall back to a case insensitive lookup.
    #11266

@Frassle
Copy link
Member

Frassle commented Nov 5, 2022

Can this not be kept in as a tfgen specific thing? I've been talking to @danielrbradley about strengthening our case sensitivity in core codegen, not keen on weakening it.

@Frassle
Copy link
Member

Frassle commented Nov 7, 2022

So after some internal talk on this, I'm fine with this change. We shouldn't be case-sensitive anyway (We support VB for example which can't distinguish between "Foo" and "foo") but we'll probably loop back to this in the future and might make it be strictly all lower case, rather than case-insensitive.

Copy link
Member

@AaronFriel AaronFriel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs a test.

pkg/codegen/hcl2/model/type_object.go Show resolved Hide resolved
Copy link
Member

@AaronFriel AaronFriel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, left a suggestion for changelog entry

@aq17
Copy link
Contributor Author

aq17 commented Nov 8, 2022

bors merge

@bors
Copy link
Contributor

bors bot commented Nov 8, 2022

Build succeeded:

@bors bors bot merged commit 4910d9c into master Nov 8, 2022
@bors bors bot deleted the aqiu/11070-a branch November 8, 2022 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants