Marcin Rataj
6a008fc74c
refactor: apply go fix modernizers from Go 1.26 ( #11190 )
...
* chore: apply go fix modernizers from Go 1.26
automated refactoring: interface{} to any, slices.Contains,
and other idiomatic updates.
* feat(ci): add `go fix` check to Go analysis workflow
ensures Go 1.26 modernizers are applied, fails CI if `go fix ./...`
produces any changes (similar to existing `go fmt` enforcement)
2026-02-11 01:01:32 +01:00
Kay
f12b372af9
style: gofumpt and godot [skip changelog] ( #10081 )
2023-08-17 14:02:08 +02:00
Eng Zer Jun
7f7a5ab1b9
test: use T.TempDir to create temporary test directory
...
This commit replaces `os.MkdirTemp` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.
Prior to this commit, temporary directory created using `os.MkdirTemp`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
defer func() {
if err := os.RemoveAll(dir); err != nil {
t.Fatal(err)
}
}
is also tedious, but `t.TempDir` handles this for us nicely.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-03-13 10:29:36 -04:00
Marcin Rataj
82467bc936
refactor: rename to kubo
2022-07-06 18:40:37 +02:00
Jorropo
a433064d72
chore: replace ioutil with io and os ( #8969 )
...
Co-authored-by: Håvard Anda Estensen <haavard.ae@gmail.com>
2022-06-14 12:37:02 -04:00
Laurent Senta
8d549f03f3
fix: rewrite dependencies over the go-ipfs-config package
2022-03-04 09:45:16 +01:00
Steven Allen
150b6dd1bd
plugins: add support for plugin configs
...
For now, configs specified in `daemon --init-config` and `init CONFIG` are not
available. We should fix this eventually but isn't necessary for now (and
supporting this will be annoying).
2019-08-29 17:17:23 -07:00
Steven Allen
4badef2a14
feat: make it easier to load custom plugins
...
1. Allow loading from arbitrary and multiple directories.
2. Make it possible to directly load built-in plugins that _aren't_ in the
preload list.
2019-06-28 08:42:29 +02:00
Jakub Sztandera
42e191c017
gx: unrewrite
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-05 18:33:56 +01:00
Hector Sanjuan
6972a9aa4d
Gx Bubble. libp2p-6.0.38
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-02-27 01:10:59 +00:00
Jakub Sztandera
28cf3de0f9
Update protobuf
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-02-18 20:46:22 +01:00
Steven Allen
2c93eeffc6
gx: update go-libp2p-peer
...
Switch _back_ to the 0.4.18 style of peer IDs while we figure things out. See
https://github.com/libp2p/specs/issues/138 .
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-07 17:41:39 -08:00
Steven Allen
01514d5179
plugin: allow plugins to implement multiple (or no) plugin interfaces
...
There's no reason for these to be exclusive.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-30 12:53:28 -08:00
Steven Allen
08cc5da55f
gx: update deps
...
Importantly:
* fixes a bunch of MFS bugs
* pulls in some bitswap improvements
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-08 19:19:34 -08:00
Łukasz Magiera
7b4ab36817
gx: update go-ipfs-config
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-04 02:37:06 +01:00
Steven Allen
5894291139
gx: update go-ipfs-config
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-20 10:07:32 -08:00
Kacper Łukawski
a1e654cd38
plugin: wire in plugin loader for node creation
...
License: MIT
Signed-off-by: Kacper Łukawski <kacluk98@gmail.com>
2018-12-17 19:41:45 -08:00
Steven Allen
9dcec2b3e2
gx: update go-libp2p-peer
...
Reverts the changes that allowed small keys (ed25519 keys) to be inlined.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-07 15:37:23 -08:00
Steven Allen
cef645936d
gx: update go-ipfs-config
...
* AutoRelay options for #5785 .
* Badger truncate-by-default option for #5275 , #5625 .
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-26 17:42:13 -08:00
Łukasz Magiera
73f3078490
gx: fix broken import
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-11-06 00:43:39 +01:00
Łukasz Magiera
5bfb8867f7
Load static plugins in init
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-11-05 15:45:49 +01:00
Steven Allen
0d80fc54c3
gx: update go-log and sha256
...
fixes #5709
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-02 21:17:20 -07:00
Steven Allen
2b0bc7e084
configurable pubsub singing
...
I'd like to sneak this into the release so we can turn on strict verification
ASAP.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-26 04:00:44 -07:00
Steven Allen
c97c3459be
gx update
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 09:59:43 -07:00
Lars Gierth
fc2575740e
gx: update go-ipfs-config, iptb
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2018-10-04 20:02:42 -04:00
Lars Gierth
2c3ed7efb0
gx: update go-datastore, go-libp2p-swarm
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2018-10-04 19:52:42 -04:00
Steven Allen
dac058f8be
gx: update go-log go-ipld-cbor
...
(and friends)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-24 05:36:29 -07:00
Steven Allen
a6e617f55c
gx: update peerstore
...
Also:
* Updates go-floodsub to fix a data race.
* Updates golang-lru
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-07 23:40:08 -07:00
Steven Allen
46a1d9d39b
gx update deps
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-31 10:29:26 -07:00
Marten Seemann
1c57b1d287
update go-ipfs-config to version 0.2.5
...
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2018-08-29 08:58:40 +07:00
Steven Allen
656d7cc1a6
gx: update go-cid, go-libp2p-peer, go-ipfs-cmds, go-ipfs-cmdkit
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-21 17:39:56 -07:00
vyzo
e002de9571
update go-ipfs-config
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-08-15 10:02:32 -07:00
Łukasz Magiera
838a30cd22
gx: Update config
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 12:39:55 +02:00
Łukasz Magiera
d52091fa55
Update iptb
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 10:57:31 +02:00
Łukasz Magiera
b65cf84a34
repo: move version.go back here
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 10:51:15 +02:00
Hector Sanjuan
30cf14ef9e
Replace the rest of thirdparty/datastore2 with go-datastore
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-26 22:12:14 +02:00
Kevin Atkinson
19730d46ea
Sort mountpoints.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-03 14:08:53 -07:00
Kevin Atkinson
1f8723d01d
Address p.r. feedback
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-03 14:08:53 -07:00
Kevin Atkinson
d64ab3ce0f
Use the json repr. of the minimal config as the DiskId.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-03 14:08:52 -07:00
Kevin Atkinson
5027b4b14f
Implement DiskId()
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-03 14:08:52 -07:00
Kevin Atkinson
1f97170ef9
Use DatastoreConfig abstraction to create datastores.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-03 14:08:52 -07:00
Kevin Atkinson
5a8c17104d
add tests for new datastore configuration
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-03 14:08:52 -07:00