ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16.03k stars 3k forks source link

Migrating users to new configuration (protocols, bootstrap peers etc.) #1793

Open ion1 opened 8 years ago

ion1 commented 8 years ago

When the default config is updated (e.g. protocols or bootstrap peers are added), users need to update their ~/.ipfs/config manually.

Many programs solve the issue by only writing settings that were actually modified into the file, falling back to built-in defaults for settings that are not present when reading.

To see the full config, users are able to run ipfs config show.

Some additonal options for storing a default config for the user to read, each one having some advantages and disadvantages:

Finally, it would be nice to have an ipfs config subcommand that resets a setting to the default value, removing it from the config file.

jbenet commented 8 years ago

thanks @ion1, sounds like a good direction.

We've also gotten requests for:

(i'm not so sold on changing the format, but conceivable).


Also, since the repo is moving most of its contents to be represented as ipfs objects, what we can do is

the binary takes the default, patches it with user's and uses that.

Kubuxu commented 8 years ago

HOCON as a superset of JSON designed to be configuration language would be awesome but it looks like there is no implementation for Go.