@cryptotaxi247 / kubo / commits / f2614d979

sync: update CI config files (#87)

This commit was moved from ipfs/interface-go-ipfs-core@de3410bbe2bbdbf50e090a06eda0f741cad5381c This commit was moved from ipfs/boxo@ea6ac8cb6aa02f6cd88cb141f3f077e206277829

web3-bot committed Aug 25, 2022 at 15:07 UTC f2614d979edfef6bb4ee6c3465aa3636c9f95850
17 files changed +47 -42
core/coreiface/block.go
+2 -1
@@ -2,9 +2,10 @@ package iface
2
3 import (
4 "context"
5 - path "github.com/ipfs/interface-go-ipfs-core/path"
5 "io"
6
7 + path "github.com/ipfs/interface-go-ipfs-core/path"
8 +
9 "github.com/ipfs/interface-go-ipfs-core/options"
10 )
11
core/coreiface/dht.go
+1
@@ -2,6 +2,7 @@ package iface
2
3 import (
4 "context"
5 +
6 path "github.com/ipfs/interface-go-ipfs-core/path"
7
8 "github.com/ipfs/interface-go-ipfs-core/options"
core/coreiface/key.go
+1
@@ -2,6 +2,7 @@ package iface
2
3 import (
4 "context"
5 +
6 path "github.com/ipfs/interface-go-ipfs-core/path"
7
8 "github.com/ipfs/interface-go-ipfs-core/options"
core/coreiface/name.go
+1
@@ -3,6 +3,7 @@ package iface
3 import (
4 "context"
5 "errors"
6 +
7 path "github.com/ipfs/interface-go-ipfs-core/path"
8
9 "github.com/ipfs/interface-go-ipfs-core/options"
core/coreiface/object.go
+2 -1
@@ -2,9 +2,10 @@ package iface
2
3 import (
4 "context"
5 - path "github.com/ipfs/interface-go-ipfs-core/path"
5 "io"
6
7 + path "github.com/ipfs/interface-go-ipfs-core/path"
8 +
9 "github.com/ipfs/interface-go-ipfs-core/options"
10
11 "github.com/ipfs/go-cid"
core/coreiface/options/key.go
+1 -1
@@ -69,7 +69,7 @@ func (keyOpts) Type(algorithm string) KeyGenerateOption {
69 // generated. Default is -1
70 //
71 // value of -1 means 'use default size for key type':
72 -// * 2048 for RSA
72 +// - 2048 for RSA
73 func (keyOpts) Size(size int) KeyGenerateOption {
74 return func(settings *KeyGenerateSettings) error {
75 settings.Size = size
core/coreiface/options/name.go
-1
@@ -113,7 +113,6 @@ func (nameOpts) Cache(cache bool) NameResolveOption {
113 }
114 }
115
116 -//
116 func (nameOpts) ResolveOption(opt ropts.ResolveOpt) NameResolveOption {
117 return func(settings *NameResolveSettings) error {
118 settings.ResolveOpts = append(settings.ResolveOpts, opt)
core/coreiface/options/pin.go
+20 -20
@@ -164,11 +164,11 @@ func (pinLsOpts) Indirect() PinLsOption {
164 // type.
165 //
166 // Supported values:
167 -// * "direct" - directly pinned objects
168 -// * "recursive" - roots of recursive pins
169 -// * "indirect" - indirectly pinned objects (referenced by recursively pinned
170 -// objects)
171 -// * "all" - all pinned objects (default)
167 +// - "direct" - directly pinned objects
168 +// - "recursive" - roots of recursive pins
169 +// - "indirect" - indirectly pinned objects (referenced by recursively pinned
170 +// objects)
171 +// - "all" - all pinned objects (default)
172 func (pinLsOpts) Type(typeStr string) (PinLsOption, error) {
173 switch typeStr {
174 case "all", "direct", "indirect", "recursive":
@@ -182,11 +182,11 @@ func (pinLsOpts) Type(typeStr string) (PinLsOption, error) {
182 // be returned
183 //
184 // Supported values:
185 -// * "direct" - directly pinned objects
186 -// * "recursive" - roots of recursive pins
187 -// * "indirect" - indirectly pinned objects (referenced by recursively pinned
188 -// objects)
189 -// * "all" - all pinned objects (default)
185 +// - "direct" - directly pinned objects
186 +// - "recursive" - roots of recursive pins
187 +// - "indirect" - indirectly pinned objects (referenced by recursively pinned
188 +// objects)
189 +// - "all" - all pinned objects (default)
190 func (pinLsOpts) pinType(t string) PinLsOption {
191 return func(settings *PinLsSettings) error {
192 settings.Type = t
@@ -224,11 +224,11 @@ func (pinIsPinnedOpts) Indirect() PinIsPinnedOption {
224 // type.
225 //
226 // Supported values:
227 -// * "direct" - directly pinned objects
228 -// * "recursive" - roots of recursive pins
229 -// * "indirect" - indirectly pinned objects (referenced by recursively pinned
230 -// objects)
231 -// * "all" - all pinned objects (default)
227 +// - "direct" - directly pinned objects
228 +// - "recursive" - roots of recursive pins
229 +// - "indirect" - indirectly pinned objects (referenced by recursively pinned
230 +// objects)
231 +// - "all" - all pinned objects (default)
232 func (pinIsPinnedOpts) Type(typeStr string) (PinIsPinnedOption, error) {
233 switch typeStr {
234 case "all", "direct", "indirect", "recursive":
@@ -242,11 +242,11 @@ func (pinIsPinnedOpts) Type(typeStr string) (PinIsPinnedOption, error) {
242 // pin is expected to be, speeding up the research.
243 //
244 // Supported values:
245 -// * "direct" - directly pinned objects
246 -// * "recursive" - roots of recursive pins
247 -// * "indirect" - indirectly pinned objects (referenced by recursively pinned
248 -// objects)
249 -// * "all" - all pinned objects (default)
245 +// - "direct" - directly pinned objects
246 +// - "recursive" - roots of recursive pins
247 +// - "indirect" - indirectly pinned objects (referenced by recursively pinned
248 +// objects)
249 +// - "all" - all pinned objects (default)
250 func (pinIsPinnedOpts) pinType(t string) PinIsPinnedOption {
251 return func(settings *PinIsPinnedSettings) error {
252 settings.WithType = t
core/coreiface/path/path.go
+1 -1
@@ -15,7 +15,7 @@ import (
15 // * /ipfs - Immutable unixfs path (files)
16 // * /ipld - Immutable ipld path (data)
17 // * /ipns - Mutable names. Usually resolves to one of the immutable paths
18 -//TODO: /local (MFS)
18 +// TODO: /local (MFS)
19 type Path interface {
20 // String returns the path as a string.
21 String() string
core/coreiface/pin.go
+1
@@ -2,6 +2,7 @@ package iface
2
3 import (
4 "context"
5 +
6 path "github.com/ipfs/interface-go-ipfs-core/path"
7
8 "github.com/ipfs/interface-go-ipfs-core/options"
core/coreiface/tests/block.go
+2 -3
@@ -4,7 +4,6 @@ import (
4 "bytes"
5 "context"
6 "io"
7 - "io/ioutil"
7 "strings"
8 "testing"
9
@@ -211,7 +210,7 @@ func (tp *TestSuite) TestBlockGet(t *testing.T) {
210 t.Fatal(err)
211 }
212
214 - d, err := ioutil.ReadAll(r)
213 + d, err := io.ReadAll(r)
214 if err != nil {
215 t.Fatal(err)
216 }
@@ -249,7 +248,7 @@ func (tp *TestSuite) TestBlockRm(t *testing.T) {
248 t.Fatal(err)
249 }
250
252 - d, err := ioutil.ReadAll(r)
251 + d, err := io.ReadAll(r)
252 if err != nil {
253 t.Fatal(err)
254 }
core/coreiface/tests/dag.go
+2 -1
@@ -2,12 +2,13 @@ package tests
2
3 import (
4 "context"
5 - path "github.com/ipfs/interface-go-ipfs-core/path"
5 "math"
6 gopath "path"
7 "strings"
8 "testing"
9
10 + path "github.com/ipfs/interface-go-ipfs-core/path"
11 +
12 coreiface "github.com/ipfs/interface-go-ipfs-core"
13
14 ipldcbor "github.com/ipfs/go-ipld-cbor"
core/coreiface/tests/object.go
+5 -5
@@ -4,11 +4,11 @@ import (
4 "bytes"
5 "context"
6 "encoding/hex"
7 - "io/ioutil"
7 + "io"
8 "strings"
9 "testing"
10
11 - "github.com/ipfs/interface-go-ipfs-core"
11 + iface "github.com/ipfs/interface-go-ipfs-core"
12 opt "github.com/ipfs/interface-go-ipfs-core/options"
13 )
14
@@ -143,7 +143,7 @@ func (tp *TestSuite) TestObjectData(t *testing.T) {
143 t.Fatal(err)
144 }
145
146 - data, err := ioutil.ReadAll(r)
146 + data, err := io.ReadAll(r)
147 if err != nil {
148 t.Fatal(err)
149 }
@@ -383,7 +383,7 @@ func (tp *TestSuite) TestObjectAddData(t *testing.T) {
383 t.Fatal(err)
384 }
385
386 - data, err := ioutil.ReadAll(r)
386 + data, err := io.ReadAll(r)
387 if err != nil {
388 t.Fatal(err)
389 }
@@ -416,7 +416,7 @@ func (tp *TestSuite) TestObjectSetData(t *testing.T) {
416 t.Fatal(err)
417 }
418
419 - data, err := ioutil.ReadAll(r)
419 + data, err := io.ReadAll(r)
420 if err != nil {
421 t.Fatal(err)
422 }
core/coreiface/tests/pin.go
+1 -1
@@ -6,7 +6,7 @@ import (
6 "strings"
7 "testing"
8
9 - "github.com/ipfs/interface-go-ipfs-core"
9 + iface "github.com/ipfs/interface-go-ipfs-core"
10 opt "github.com/ipfs/interface-go-ipfs-core/options"
11 "github.com/ipfs/interface-go-ipfs-core/path"
12
core/coreiface/tests/pubsub.go
+1 -1
@@ -5,7 +5,7 @@ import (
5 "testing"
6 "time"
7
8 - "github.com/ipfs/interface-go-ipfs-core"
8 + iface "github.com/ipfs/interface-go-ipfs-core"
9 "github.com/ipfs/interface-go-ipfs-core/options"
10 )
11
core/coreiface/tests/unixfs.go
+4 -5
@@ -6,7 +6,6 @@ import (
6 "encoding/hex"
7 "fmt"
8 "io"
9 - "io/ioutil"
9 "math"
10 "math/rand"
11 "os"
@@ -113,7 +112,7 @@ func (tp *TestSuite) TestAdd(t *testing.T) {
112 return path.IpfsPath(c)
113 }
114
116 - rf, err := ioutil.TempFile(os.TempDir(), "unixfs-add-real")
115 + rf, err := os.CreateTemp(os.TempDir(), "unixfs-add-real")
116 if err != nil {
117 t.Fatal(err)
118 }
@@ -134,7 +133,7 @@ func (tp *TestSuite) TestAdd(t *testing.T) {
133 defer os.Remove(rfp)
134
135 realFile := func() files.Node {
137 - n, err := files.NewReaderPathFile(rfp, ioutil.NopCloser(strings.NewReader(helloStr)), stat)
136 + n, err := files.NewReaderPathFile(rfp, io.NopCloser(strings.NewReader(helloStr)), stat)
137 if err != nil {
138 t.Fatal(err)
139 }
@@ -474,12 +473,12 @@ func (tp *TestSuite) TestAdd(t *testing.T) {
473 defer orig.Close()
474 defer got.Close()
475
477 - do, err := ioutil.ReadAll(orig.(files.File))
476 + do, err := io.ReadAll(orig.(files.File))
477 if err != nil {
478 t.Fatal(err)
479 }
480
482 - dg, err := ioutil.ReadAll(got.(files.File))
481 + dg, err := io.ReadAll(got.(files.File))
482 if err != nil {
483 t.Fatal(err)
484 }
core/coreiface/unixfs.go
+2 -1
@@ -2,11 +2,12 @@ package iface
2
3 import (
4 "context"
5 +
6 "github.com/ipfs/interface-go-ipfs-core/options"
7 path "github.com/ipfs/interface-go-ipfs-core/path"
8
9 "github.com/ipfs/go-cid"
9 - "github.com/ipfs/go-ipfs-files"
10 + files "github.com/ipfs/go-ipfs-files"
11 )
12
13 type AddEvent struct {