-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 preference loading for non string value #41294
fix preference loading for non string value #41294
Conversation
Would indeed be good to have some docs / tests for this (ref #38459). Otherwise, it is hard to not introduce regressions or break features as happened here. |
I can add some docs + tests in this PR if preferred, but very likely to need some help from @staticfloat (or could do that in a seperate PR which I guess would be faster to get this PR merged?) PS. @KristofferC can we backport this if it's not too late? |
Yes, it seems to be a standard bugfix. |
Yep, this is definitely a regression; we absolutely want to support dicts. Roger, adding docs and tests in a separate PR would be great, please ping me when you do so and I'll provide guidance/feedback. |
(cherry picked from commit 7553ca1)
(cherry picked from commit 7553ca1)
(cherry picked from commit 7553ca1)
this fix JuliaPackaging/Preferences.jl#16 kinda revert the type annotation added in #38285 since we don't know the type of a value IIUC unless we want to restrict the preference value to be
String
only.I'm not sure where to add a test for this, or
get_preferences_hash
wasn't tested at all?guess cc: @staticfloat