I tried with various versions of "foobar" or foobar without the quotes
sticky-bear-14421
04/12/2021, 7:41 AM
Interesting is the code points to the 'o' and not f .. I even tried setting "false" and then the code complains about false being boolean and my target go type is a string
sticky-bear-14421
04/12/2021, 9:56 AM
Not so "fun fact", when I change my code from config.RequireObject to foo := config.Require it works ..
l
lemon-agent-27707
04/12/2021, 7:35 PM
That sounds odd. Would you mind opening a bug with a repro.
config.require
does return a string.
requireObject
will read the string value and attempt to unmarshal it into the provided interface (a string in your case). I image that you probably want
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.