-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Array of arrays cannot be written to disk #1132
Comments
👋 Thanks for reporting! A maintainer will take a look at your issue shortly. 👀 In the meantime: We are working on Viper v2 and we would love to hear your thoughts about what you like or don't like about Viper, so we can improve or fix those issues. ⏰ If you have a couple minutes, please take some time and share your thoughts: https://forms.gle/R6faU74qPRPAzchZ9 📣 If you've already given us your feedback, you can still help by spreading the news, https://twitter.com/sagikazarmark/status/1306904078967074816 Thank you! ❤️ |
Oh, goodie, I even wrote an example application for this one as requested to be able to easily reproduce the issue. Happy anniversary random little bug. |
@greg-szabo can you please check if this is still an issue with the latest version? Thanks! |
Just checked, it works as expected now! Thanks! |
Expected behavior (what you expected to happen):
After
WriteConfig()
, configuration written to disk.Actual behavior (what actually happened):
File is empty,
WriteConfig()
returned withWhile marshaling config: cannot convert type []interface {} to Tree
.Note: this struct can be read from disk fine, it's only the writing that fails.
Repl.it link:
https://replit.com/@gregszabo/TOMLExample2
Code reproducing the issue:
Environment:
Anything else we should know?:
The array is fine according to the TOML spec.
The text was updated successfully, but these errors were encountered: