Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade viper to handle unmarshaling env into nested struct #1451

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

haoming29
Copy link
Contributor

Fixes #1446

This PR upgraded viper to a pre-release version v1.20.0-alpha3 (came out this morning that fixes the issue), as they recently added this experimental support of handling unmarshaling env into nested struct via a viper option. They initially added support in v1.18.0 (spf13/viper#1429) but with some reported rare use case failure, they then did a patch to hide this feature behind a feature flag. In 1.20, they will make this available by config option (spf13/viper#1854).

If all tests are passing, I don't think there's anything that blocks us from using this pre-released version.

To test locally, follow bug reproduction in the original issue.

@haoming29 haoming29 added bug Something isn't working critical High priority for next release labels Jun 24, 2024
@haoming29 haoming29 added this to the v7.10.0 milestone Jun 24, 2024
Copy link
Member

@jhiemstrawisc jhiemstrawisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested against the env var that had been causing problems and confirmed this works.

@jhiemstrawisc jhiemstrawisc merged commit 520d0af into PelicanPlatform:main Jun 25, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical High priority for next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mitigate viper bug in failing to bind env to nested config
2 participants