Commit Graph

92 Commits

Author SHA1 Message Date
Andrew Gillis
26bb4ca276
Upgrade to Boxo v0.28.0 (#10725)
Some checks failed
Docker Build / docker-build (push) Waiting to run
Gateway Conformance / gateway-conformance (push) Waiting to run
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Waiting to run
Go Build / go-build (push) Waiting to run
Go Check / go-check (push) Waiting to run
Go Lint / go-lint (push) Waiting to run
Go Test / go-test (push) Waiting to run
Interop / interop-prep (push) Waiting to run
Interop / helia-interop (push) Blocked by required conditions
Interop / ipfs-webui (push) Blocked by required conditions
Sharness / sharness-test (push) Waiting to run
Spell Check / spellcheck (push) Waiting to run
CodeQL / codeql (push) Has been cancelled
* Upgrade to Boxo v0.28.0
2025-02-24 16:54:14 -08:00
Andrew Gillis
224d6a3ba4
refactor(cmds): do not return errors embedded in result type (#10527)
incl. https://github.com/ipfs/boxo/pull/738
2024-12-03 20:15:33 +01:00
crazehang
efceaec7da
core: fix some typos (#10382)
Signed-off-by: crazehang <zhangrenzhong@outlook.com>
2024-04-03 13:29:32 +02:00
Henrique Dias
9047fed8d5
core/commands!: remove deprecated object APIs (#10375) 2024-03-22 09:32:30 +01:00
Henrique Dias
80973d87cc core: deprecate CoreAPI.Dht, introduce CoreAPI.Routing 2024-02-07 10:47:30 +01:00
Henrique Dias
8ab2de5ff0
feat: ipfs key sign|verify (#10235) 2023-12-04 09:51:26 +01:00
Henrique Dias
58c29399cf
chore: clean migration 2023-11-29 12:29:59 +01:00
Jorropo
dafdce8983 path: replace ImmutablePath interface with struct
Let's not repeat https://github.com/ipfs/go-block-format/issues/45 interface for struct with one implementation and no value added.


This commit was moved from ipfs/boxo@45c797e0cc
2023-10-09 09:35:59 +02:00
Henrique Dias
5bac37c735 feat(path)!: consolidated path libraries (#334)
This commit was moved from ipfs/boxo@85c180e266
2023-10-06 16:04:23 +02:00
Jorropo
334308f532 style: run gofumpt
This commit was moved from ipfs/boxo@c5a805eed5
2023-08-21 10:24:37 +02:00
Henrique Dias
d6464864cb feat(ipns): refactored IPNS package with lean records (#339)
This commit was moved from ipfs/boxo@417c5f7d61
2023-06-20 14:08:22 +02:00
Michael Muré
0134124cdd pinner: change the interface to have async pin listing
The rational is that if the pin list get big, a synchronous call to get the complete list can delay handling unnecessarily. For example, when listing indirect pins, you can start walking the DAGs immediately with the first recursive pin instead of waiting for the full list.

This matters even more on low power device, of if the pin list is stored remotely.

* coreiface: allow to return an error not linked to a specific Cid
* merkledag/test: add a DAG generator

Rationale is that generating a test DAG is quite difficult, and anything that helps writing better tests is helpful.

This commit was moved from ipfs/boxo@e2fc7f2fd0
2023-06-02 16:49:03 +02:00
Jorropo
18143e2bb3 coreiface: add a testing.T argument to the provider
This is usefull because it allows the Provider to use t.Cleanup for cleaning up the nodes.


This commit was moved from ipfs/boxo@c23df3837f
2023-05-30 19:54:01 +02:00
Laurent Senta
1b154e2456 feat(routing): allow-offline with routing put (#278)
This commit was moved from ipfs/boxo@8059f183d8
2023-05-03 12:59:07 +02:00
Jorropo
8c2ae9cf22 feat: Über Migration (and Boxo rename)
Include rename from:
  github.com/ipfs/go-libipfs => github.com/ipfs/boxo

This migration was reverted:
  ./blocks => github.com/ipfs/go-block-format

Migrated repos:
- github.com/ipfs/interface-go-ipfs-core         => ./coreiface
- github.com/ipfs/go-pinning-service-http-client => ./pinning/remote/client
- github.com/ipfs/go-path                        => ./path
- github.com/ipfs/go-namesys                     => ./namesys
- github.com/ipfs/go-mfs                         => ./mfs
- github.com/ipfs/go-ipfs-provider               => ./provider
- github.com/ipfs/go-ipfs-pinner                 => ./pinning/pinner
- github.com/ipfs/go-ipfs-keystore               => ./keystore
- github.com/ipfs/go-filestore                   => ./filestore
- github.com/ipfs/go-ipns                        => ./ipns
- github.com/ipfs/go-blockservice                => ./blockservice
- github.com/ipfs/go-ipfs-chunker                => ./chunker
- github.com/ipfs/go-fetcher                     => ./fetcher
- github.com/ipfs/go-ipfs-blockstore             => ./blockstore
- github.com/ipfs/go-ipfs-posinfo                => ./filestore/posinfo
- github.com/ipfs/go-ipfs-util                   => ./util
- github.com/ipfs/go-ipfs-ds-help                => ./datastore/dshelp
- github.com/ipfs/go-verifcid                    => ./verifcid
- github.com/ipfs/go-ipfs-exchange-offline       => ./exchange/offline
- github.com/ipfs/go-ipfs-routing                => ./routing
- github.com/ipfs/go-ipfs-exchange-interface     => ./exchange
- github.com/ipfs/go-unixfs                      => ./ipld/unixfs
- github.com/ipfs/go-merkledag                   => ./ipld/merkledag
- github.com/ipld/go-car                         => ./ipld/car

Fixes #215
Updates #202


This commit was moved from ipfs/boxo@038bdd291d
2023-03-27 19:29:40 +02:00
Jorropo
3b6647ffdc test: use two nodes in publish
This spin up online nodes instead of offline ones.


This commit was moved from ipfs/interface-go-ipfs-core@a8d2741bbe

This commit was moved from ipfs/boxo@54d20f0173
2023-02-10 03:31:30 +01:00
Henrique Dias
3f7c35bdb9 test: basic routing interface test
This commit was moved from ipfs/interface-go-ipfs-core@d069f41be1

This commit was moved from ipfs/boxo@48f8c69a90
2023-02-09 07:52:38 +01:00
Henrique Dias
587075204d chore: migrate files (#97)
This commit was moved from ipfs/interface-go-ipfs-core@f7b346b76c

This commit was moved from ipfs/boxo@01de18ff3f
2023-01-12 11:45:13 +01:00
web3-bot
f2614d979e sync: update CI config files (#87)
This commit was moved from ipfs/interface-go-ipfs-core@de3410bbe2

This commit was moved from ipfs/boxo@ea6ac8cb6a
2022-08-25 13:07:58 +00:00
Lucas Molas
caa42b5634 refactor(block): CIDv1 and BlockPutSettings CidPrefix (#80)
* feat(block options): add store codec
* refactor: BlockPutSettings.CidPrefix

Removes duplicated fields and replaces them with cid.Prefix

Codec, MhType and MhLength were  already in prefix, and we already return
prefix. A lot of duplicated values and code responsible for syncing them
did not really need to exist.

* test: CIDv1 raw and dag-pb cases
* chore: release 0.7.0

Co-authored-by: Marcin Rataj <lidel@lidel.org>

This commit was moved from ipfs/interface-go-ipfs-core@a3374d9902

This commit was moved from ipfs/boxo@aca3a1839f
2022-04-21 17:41:58 +02:00
Jorropo
9120e3f1f9 fix: use IPLD.ErrNotFound instead of string comparison in tests
This commit was moved from ipfs/interface-go-ipfs-core@03f4e9cca1

This commit was moved from ipfs/boxo@548e3d4298
2022-04-02 03:28:57 +02:00
Hector Sanjuan
49e2b34be5 Update tests to use ipld.IsNotFound to check for notfound errors
This commit was moved from ipfs/interface-go-ipfs-core@01ee9419a2

This commit was moved from ipfs/boxo@2263eca4a4
2022-03-18 00:25:08 +01:00
Steven Allen
f909368aa0 fix: check errors by string
Unfortunately, we return errors over the HTTP API and lose the type.


This commit was moved from ipfs/interface-go-ipfs-core@98e72571bc

This commit was moved from ipfs/boxo@b722930c08
2021-08-17 13:32:26 -07:00
Hannah Howard
58c9824ce4 IPLD In IPFS: Target Merge Branch (#67)
* update go-path and error message
* add node api for prime interactions
* use go-unixfsnode
* update against fetcher

Co-authored-by: acruikshank <acruikshank@example.com>

This commit was moved from ipfs/interface-go-ipfs-core@49cdff8024

This commit was moved from ipfs/boxo@8f0db8f184
2021-08-12 09:35:49 -07:00
Marten Seemann
fb0a7edf12 fix staticcheck
This commit was moved from ipfs/interface-go-ipfs-core@08bd316e61

This commit was moved from ipfs/boxo@5df09f8425
2021-06-02 09:11:14 -07:00
Petar Maymounkov
2517d0b9d4 add id and key formatting utils; format keys as b36cid by default; update tests
This commit was moved from ipfs/interface-go-ipfs-core@c604c5b033

This commit was moved from ipfs/boxo@7bcd643738
2020-07-29 13:58:18 -04:00
Steven Allen
1babbda938 Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#50 from MichaelMure/pinispinned
add Pin.IsPinned(..)

This commit was moved from ipfs/interface-go-ipfs-core@ee0d435cd1

This commit was moved from ipfs/boxo@150e1b6bea
2020-05-04 17:28:17 -07:00
Will Scott
3a48c52719 extra time for dht spin-up
This commit was moved from ipfs/interface-go-ipfs-core@9160e64532

This commit was moved from ipfs/boxo@0ed0b6f39d
2020-04-21 08:40:13 -07:00
Michael Muré
7f07bf0996 pin: better doc, small cleaning
This commit was moved from ipfs/interface-go-ipfs-core@478caf05ab

This commit was moved from ipfs/boxo@bffa011f0a
2020-03-30 16:20:15 +02:00
Michael Muré
b52034068c pin: add a IsPinned method
This commit was moved from ipfs/interface-go-ipfs-core@c82db2ef22

This commit was moved from ipfs/boxo@e84cc05698
2020-03-02 11:40:26 +01:00
Steven Allen
cdd7cc4776 Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#49 from MichaelMure/pinls
feat: make the CoreAPI expose a streaming pin interface

This commit was moved from ipfs/interface-go-ipfs-core@292d906e7e

This commit was moved from ipfs/boxo@a06d5541a4
2020-02-28 14:01:18 -08:00
Michael Muré
80a898dd55 test: fail early on err to avoid an unrelated panic
This commit was moved from ipfs/interface-go-ipfs-core@df21c57e0f

This commit was moved from ipfs/boxo@7a2fc1b816
2020-01-22 17:11:19 +01:00
Steven Allen
e5059d9e1d fix(tests): put valid blocks
This commit was moved from ipfs/interface-go-ipfs-core@16127b2917

This commit was moved from ipfs/boxo@b1c5044d15
2019-12-02 15:04:28 -05:00
Michael Muré
8eff544241 fix some tests
This commit was moved from ipfs/interface-go-ipfs-core@48dcedecd4

This commit was moved from ipfs/boxo@689e92b560
2019-11-29 22:29:47 +01:00
Michael Muré
e3b5686710 feat: make the CoreAPI expose a streaming pin interface
This commit was moved from ipfs/interface-go-ipfs-core@f976af7ba6

This commit was moved from ipfs/boxo@6eb5c9791b
2019-11-29 22:29:42 +01:00
Adin Schmahmann
c23fa6e2f1 test(pinning): add pin ls tests for indirect pin traversal and pin type precedence
This commit was moved from ipfs/interface-go-ipfs-core@cd7be61c71

This commit was moved from ipfs/boxo@30eb9c7c43
2019-10-11 11:14:39 -04:00
Steven Allen
58df273d66 fix(test): fix a flaky pubsub test
This commit was moved from ipfs/interface-go-ipfs-core@00de46e290

This commit was moved from ipfs/boxo@125f06e6af
2019-09-27 16:21:44 -07:00
Steven Allen
5168b591dc test: test ReadAt if implemented
(I plan on adding support to the http client, at least)


This commit was moved from ipfs/interface-go-ipfs-core@ae83868617

This commit was moved from ipfs/boxo@a8c5ec6062
2019-09-10 18:53:39 -07:00
Steven Allen
09a4311db7 test: fix put with hash test
We just changed ID/"id" to IDENTITY/"identity" to match the multicodec table and
avoid confusion with peer IDs, CIDs, etc.

Unfortunately, this breaks the `--hash=id` flag. Luckily, I'm pretty sure
nobody's actually using this. As putting a block with an identity hash is
useless. If they are users, we can go about adding in backwards compatibility
hacks later.


This commit was moved from ipfs/interface-go-ipfs-core@6ebdbe7ef3

This commit was moved from ipfs/boxo@3b9a723861
2019-08-23 16:22:22 -07:00
Cole Brown
fafbedb658 Bump go-libp2p-core, up test key size to 2048
This commit was moved from ipfs/interface-go-ipfs-core@6ba366dd62

This commit was moved from ipfs/boxo@98cec33988
2019-08-02 21:09:17 -04:00
Łukasz Magiera
79958dc097 tests: expose TestSuite
This commit was moved from ipfs/interface-go-ipfs-core@6fe8577a83

This commit was moved from ipfs/boxo@3d72707f57
2019-05-17 18:57:15 +02:00
Steven Allen
ce49669839 switch to base32 cidv1 by default
This commit was moved from ipfs/interface-go-ipfs-core@6287246646

This commit was moved from ipfs/boxo@763b3d8a00
2019-05-07 00:57:21 -07:00
Steven Allen
b0a1bca80a Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#22 from ipfs/feat/drop-path-err
path: drop error from ParsePath

This commit was moved from ipfs/interface-go-ipfs-core@7786158101

This commit was moved from ipfs/boxo@00b2c9a357
2019-04-17 12:02:06 -07:00
Steven Allen
eb58ebe446 fix: cleanup TestDhtProvide
And fix for peer ID formatting changes.

fixes https://github.com/ipfs/go-ipfs/pull/6222#issuecomment-483479039


This commit was moved from ipfs/interface-go-ipfs-core@29b26f5bcb

This commit was moved from ipfs/boxo@d493b70194
2019-04-15 21:58:51 -07:00
Łukasz Magiera
3669a774ff path: rename ParsePath and ResolvedPath
This commit was moved from ipfs/interface-go-ipfs-core@21a72398d9

This commit was moved from ipfs/boxo@fbc9ab8769
2019-04-04 09:00:23 +02:00
Łukasz Magiera
51a937fffd path: WIP
This commit was moved from ipfs/interface-go-ipfs-core@5a83651539

This commit was moved from ipfs/boxo@b8463e7c12
2019-04-04 09:00:23 +02:00
Łukasz Magiera
aca6f61a63 path: fix tests
This commit was moved from ipfs/interface-go-ipfs-core@33d445a614

This commit was moved from ipfs/boxo@1497150b1f
2019-04-04 09:00:23 +02:00
Steven Allen
2817364035 Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#25 from ipfs/fix/no-close-addr
don't close the top-level addr

This commit was moved from ipfs/interface-go-ipfs-core@9ebc1123b3

This commit was moved from ipfs/boxo@00c2b523df
2019-03-29 12:58:56 +00:00
Steven Allen
96a0e32255 Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#24 from ipfs/test/use-fatal
fix a bunch of small test "bugs"

This commit was moved from ipfs/interface-go-ipfs-core@ccf9dacfee

This commit was moved from ipfs/boxo@c9c75b02ce
2019-03-27 10:27:35 +00:00
Steven Allen
6c4219a102 don't close the top-level addr
See https://github.com/ipfs/go-ipfs-http-client/pull/10/files#r269268326


This commit was moved from ipfs/interface-go-ipfs-core@1b707f2943

This commit was moved from ipfs/boxo@21ade61b10
2019-03-26 19:01:23 +00:00