kubo/core/commands
Andrew Gillis a22efea6f3
provider: clear provide queue when reprovide strategy changes (#10863)
* provider: clear reprovide queue when reprovide strategy changes

When the currently configured reprovide strategy does not match the previous strategy read from the datastore, then clear the reprovide queue and update the reprovide strategy that is stored in the datastore.

Depends on https://github.com/ipfs/boxo/pull/978

Closes #10829

* Update docs/changelogs/v0.36.md

Co-authored-by: Guillaume Michel <guillaumemichel@users.noreply.github.com>

* update log message
* update boxo
* Move change log to v0.37.md
* Add `provide clear` command to clear provide queue

The `provide clear` command clears all items from the provide queue and prints out the number of items removed from the queue. The `quiet` option tells the command not to print output.

* refactor(cmds): ipfs provide clear

moving to new namespace to avoid conflicts, and also document other
commands

* docs: clarify Reprovider.Strategy
* chore: remove undesired md link
2025-07-16 01:28:27 -07:00
..
cmdenv chore: use go-log/v2 (#10801) 2025-05-19 13:04:05 -07:00
cmdutils chore: clean migration 2023-11-29 12:29:59 +01:00
dag Replace use of go-car v1 with go-car/v2 (#10845) 2025-07-08 18:40:20 +02:00
e Fix typo in an error.go comment: "is adds" -> "adds". 2018-01-17 15:25:54 -08:00
keyencode chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
name chore: use go-log/v2 (#10801) 2025-05-19 13:04:05 -07:00
object core/commands!: remove deprecated object APIs (#10375) 2024-03-22 09:32:30 +01:00
pin chore: use go-log/v2 (#10801) 2025-05-19 13:04:05 -07:00
active.go refactor: use slices.Sort where appropriate (#10858) 2025-07-08 18:43:23 +02:00
add.go feat(config): ipfs add and Import options for controling UnixFS DAG Width (#10774) 2025-04-15 22:56:38 +02:00
bitswap.go fix(rpc): restore and reprecate bitswap reprovide (#10699) 2025-02-10 16:12:53 +01:00
block.go config: introduce Import section (#10421) 2024-05-14 14:17:04 +00:00
bootstrap.go refactor: use slices.Sort where appropriate (#10858) 2025-07-08 18:43:23 +02:00
cat.go chore: use errors.New to replace fmt.Errorf with no parameters (#10617) 2024-12-10 13:50:35 -08:00
cid_test.go Nonfunctional (#10753) 2025-03-11 14:04:16 -07:00
cid.go refactor: use slices.Sort where appropriate (#10858) 2025-07-08 18:43:23 +02:00
commands_test.go provider: clear provide queue when reprovide strategy changes (#10863) 2025-07-16 01:28:27 -07:00
commands.go refactor: use slices.Sort where appropriate (#10858) 2025-07-08 18:43:23 +02:00
completion.go refactor: use slices.Sort where appropriate (#10858) 2025-07-08 18:43:23 +02:00
config_test.go test: TestEditorParsing 2025-07-08 18:43:47 +02:00
config.go test: TestEditorParsing 2025-07-08 18:43:47 +02:00
dht_test.go refactor: namesys cleanup, gateway /ipns/ ttl (#10115) 2023-10-18 10:23:50 +02:00
dht.go chore: use errors.New to replace fmt.Errorf with no parameters (#10617) 2024-12-10 13:50:35 -08:00
diag.go feat: add an "ipfs diag profile" command 2021-07-21 14:51:47 -07:00
external.go style: gofumpt and godot [skip changelog] (#10081) 2023-08-17 14:02:08 +02:00
extra.go refactor: get rid of cmdDetails awkwardness 2020-08-04 18:28:40 -04:00
files_test.go fix(mfs): basic UnixFS sanity checks in files cp (#10701) 2025-03-05 20:40:33 +01:00
files.go refactor: use slices.Sort where appropriate (#10858) 2025-07-08 18:43:23 +02:00
filestore.go Ivan386/filestore fix (#7474) 2025-06-04 14:04:20 -07:00
get_test.go cmdkit -> cmds 2019-05-10 23:00:20 -07:00
get.go feat: Support storing UnixFS 1.5 Mode and ModTime (#10478) 2024-08-21 02:02:46 +02:00
helptext_test.go gx: unrewrite 2019-03-05 18:33:56 +01:00
id.go refactor: use slices.Sort where appropriate (#10858) 2025-07-08 18:43:23 +02:00
keystore.go chore: use errors.New to replace fmt.Errorf with no parameters (#10617) 2024-12-10 13:50:35 -08:00
log.go chore: use go-log/v2 (#10801) 2025-05-19 13:04:05 -07:00
ls.go refactor: use slices.Sort where appropriate (#10858) 2025-07-08 18:43:23 +02:00
mount_nofuse.go feat(fuse): Expose MFS as FUSE mount point (#10781) 2025-05-06 21:55:53 +02:00
mount_unix.go feat(fuse): Expose MFS as FUSE mount point (#10781) 2025-05-06 21:55:53 +02:00
mount_windows.go cmdkit -> cmds 2019-05-10 23:00:20 -07:00
multibase.go ci: add stylecheck to golangci-lint (#9334) 2022-10-06 10:18:40 -04:00
p2p.go chore: use errors.New to replace fmt.Errorf with no parameters (#10617) 2024-12-10 13:50:35 -08:00
ping.go refactor: stop using go-libp2p deprecated peer.ID.Pretty 2023-09-18 15:58:15 +02:00
profile.go profile: add trace 2024-01-12 14:55:55 +01:00
provide.go provider: clear provide queue when reprovide strategy changes (#10863) 2025-07-16 01:28:27 -07:00
pubsub.go refactor: use slices.Sort where appropriate (#10858) 2025-07-08 18:43:23 +02:00
refs.go chore: upgrade to go 1.23 (#10486) 2024-08-28 18:56:45 +02:00
repo.go commands: remove several deprecated commands 2023-12-12 18:21:52 +01:00
resolve.go docs(cli): fix spelling 2023-12-04 09:40:21 +01:00
root_test.go core/corehttp!: remove /api/v0 from gateway port 2024-03-05 08:21:13 +00:00
root.go provider: clear provide queue when reprovide strategy changes (#10863) 2025-07-16 01:28:27 -07:00
routing.go fix(config): wire up Provider.Enabled flag (#10804) 2025-05-15 19:19:18 +02:00
shutdown.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
stat_dht.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
stat_provide.go feat: Provider.WorkerCount and stats reprovide (#10779) 2025-04-30 15:32:03 +02:00
stat_reprovide.go feat: Provider.WorkerCount and stats reprovide (#10779) 2025-04-30 15:32:03 +02:00
stat.go feat: Provider.WorkerCount and stats reprovide (#10779) 2025-04-30 15:32:03 +02:00
swarm.go refactor: use slices.Sort where appropriate (#10858) 2025-07-08 18:43:23 +02:00
sysdiag.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
version.go feat: Add CI for Spell Checking (#10637) 2025-01-30 17:50:51 +01:00