-
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
WriteConfig fails to write if file does not exist #433
Comments
I had similar issue too and filed as #430 and right now my workaround is like this,
I'm just hoping there is a better solution. |
Use |
I got same issue. |
yann-soubeyrand
added a commit
to yann-soubeyrand/viper
that referenced
this issue
Jul 14, 2020
yann-soubeyrand
added a commit
to yann-soubeyrand/viper
that referenced
this issue
Jul 14, 2020
yann-soubeyrand
added a commit
to yann-soubeyrand/viper
that referenced
this issue
Jul 14, 2020
yann-soubeyrand
added a commit
to yann-soubeyrand/viper
that referenced
this issue
Jul 14, 2020
jsuchome
added a commit
to jsuchome/fuseml-core
that referenced
this issue
Jun 17, 2021
This is a workaround for spf13/viper#433; once it is fixed, viper.WriteConfig should be able to create the config file if it does not exist.
jsuchome
added a commit
to jsuchome/fuseml-core
that referenced
this issue
Jun 17, 2021
This is a workaround for spf13/viper#433; once it is fixed, viper.WriteConfig should be able to create the config file if it does not exist.
jsuchome
added a commit
to jsuchome/fuseml-core
that referenced
this issue
Jun 18, 2021
This is a workaround for spf13/viper#433; once it is fixed, viper.WriteConfig should be able to create the config file if it does not exist.
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The new
WriteConfig
function ends up callingfindConfigFile
, which in turn checks whether the file exists. If it doesn't then it returns an error, which stops the config being written.The text was updated successfully, but these errors were encountered: