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

Fix config issue with type conversion and deprecation warnings #897

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

LandonTClipp
Copy link
Collaborator

@LandonTClipp LandonTClipp commented Jan 20, 2025

Fixes #895.

This fixes two dumb issues: r.Config.Packages is not actually resolved into the real value set in the config because... idk viper is weird? Or maybe my code sucks? Either way, the fix is to key off of the r.Config.ConfiguredPackages() value to determine if packages is actually being used or not.

The second issue was with an edge case in the config that tried access an empty map in the package-level config. Again, this code sucks so I'm just writing the fix without any tests because I'm focusing most of my effort on v3 right now.

@LandonTClipp LandonTClipp changed the title Fix config issue with type conversion Fix config issue with type conversion and deprecation warnings Jan 20, 2025
@LandonTClipp LandonTClipp merged commit 52c9c25 into vektra:master Jan 20, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation message of "migrate your config to use packages" persists even after migration
1 participant