https://pulumi.com logo
#contribute
Title
# contribute
f

flaky-arm-38472

05/25/2023, 4:25 AM
Hi, the file
sdk/go/pulumi/config/require.go
says at the beginning: // Code generated by "generate.go"; DO NOT EDIT. What that does even mean for this case?. I see here there are functions used to load the secrets from a stack there and could not find anywhere where the codegen generate the functions based on any parameter. If not in this file, where then? 🤔
b

brainy-church-78120

05/25/2023, 4:31 AM
can you share more context around what you would like to contribute?
f

flaky-arm-38472

05/25/2023, 4:32 AM
I am trying to unify the message displayed when a secret is not found. Currently on all 3 sdk the message is different. Ideally it will be the same for all 3 to avoid confusion.
e

echoing-dinner-19531

05/25/2023, 9:38 AM
It's generated by https://github.com/pulumi/pulumi/tree/master/sdk/go/pulumi/generate So you'll want to fix up the templates in there
f

flaky-arm-38472

05/29/2023, 2:29 AM
@echoing-dinner-19531 The templates have the same legend "_// Code generated by "generate.go"; DO NOT EDIT_.". is that informative in this case?
e

echoing-dinner-19531

05/29/2023, 8:16 AM
Yup, we could probably pull the header out of the templates and have generate.go just add it as part of it's code, little bit more code to do that but might be simpler for new readers to understand.