mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
fix: correctly handle migration of configs
readPluginsConfig was copied from ReadMigrationConfig and switched erroring fields to a bool so it can be omitemptied.
This commit is contained in:
@ -83,7 +83,7 @@ func Path(configroot, extension string) (string, error) {
|
||||
// - If the user-provided configuration file path is only a file name, use the
|
||||
// configuration root directory, otherwise use only the user-provided path
|
||||
// and ignore the configuration root.
|
||||
func Filename(configroot string, userConfigFile string) (string, error) {
|
||||
func Filename(configroot, userConfigFile string) (string, error) {
|
||||
if userConfigFile == "" {
|
||||
return Path(configroot, DefaultConfigFile)
|
||||
}
|
||||
|
Reference in New Issue
Block a user