Closed ilyutov closed 2 years ago
Good catch, thank you!
{Goth, name: MyApp.Goth}
- broken
What's the error you're getting? Does this patch fix that one too?
What's the error you're getting? Does this patch fix that one too?
Same error. I believe it checks for env variables and default json file location when you don't specify source. If none of those exist it falls back to metadata which was broken.
A tiny fix for shorthand metadata source configuration:
{Goth, name: MyApp.Goth}
- broken{Goth, name: MyApp.Goth, source: :metadata}
- broken{Goth, name: MyApp.Goth, source: {:metadata, []}}
- worksGot this issue while migrating my app from using credentials file to Workload Identity.
Stacktrace:
I couldn't find a way to write a test for this with the current setup. I hope it's simple enough to go untested.