ipfs / kubo

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

Changed option is ignored #10231

Open gdkrmr opened 9 months ago

gdkrmr commented 9 months ago

Checklist

Installation method

ipfs-desktop

Version

This was on the docker version. 

Kubo version: 0.24.0-e70db65
Repo version: 15
System version: amd64/linux
Golang version: go1.21.4

Config

No response

Description

Changing the config

ipfs config --json Experimental.FilestoreEnabled true

and then running (without restarting, as in the documentation)

ipfs add --nocopy ...

will ignore the --nocopy and add everything as blocks. This should probably give an error.

lidel commented 9 months ago

Thank you for surfacing this UX problem @gdkrmr. Yes, this looks like a bug – add --nocopy should error.

I think this is something not limited to FilestoreEnabled, we have many flags that don't take effect without restarting, such as entire Routing, including Routing.AcceleratedDHTClient.

Fix proposal

This is a good opportunity to improve UX around config changes.

Jonath-z commented 7 months ago

@gdkrmr can look into this? First time contributing to open source ;-), I would love just more guidance to work on this