Via conversation in Community Slack, we should probably make it clearer what works and what doesn't, by language. (This issue was related to Python, but may be common to all languages.)
https://pulumi-community.slack.com/archives/C84L4E3N1/p1717429416648089