It breaks all hope of unit testing the component..
e
echoing-dinner-19531
03/01/2023, 10:29 AM
export is really for stack outputs, so you probably don't want to be calling that in components.
m
millions-addition-49065
03/01/2023, 3:04 PM
That’s what I figured. thanks. Would it be helpful or is there any interest in somehow making that preventable?
l
little-cartoon-10569
03/01/2023, 6:58 PM
Linting tools help with that, if it's important to you. And code reviews.
I have a code standard that no external interfaces (config, stack references, other components, etc.) are allowed in components we write, other than the component's core purpose and logging. We rely only on code reviews to enforce this. It's working fine so far.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.