Commit Graph

249 Commits

Author SHA1 Message Date
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
Steven Allen
5b7c7cd326 Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#39 from ipfs/feat/update-libp2p-core
Bump go-libp2p-core, up test key size to 2048

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

This commit was moved from ipfs/boxo@5b677a6e6e
2019-08-02 18:31:46 -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
Steven Allen
dc6ca5a77d Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#35 from raulk/migrate-libp2p
migrate to go-libp2p-core.

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

This commit was moved from ipfs/boxo@60f7faebc3
2019-05-30 20:45:28 -07:00
Raúl Kripalani
1f4d8c7243 migrate to go-libp2p-core.
This commit was moved from ipfs/interface-go-ipfs-core@2cc0c497f2

This commit was moved from ipfs/boxo@1f2b5ca04f
2019-05-28 17:09:34 +01:00
Łukasz Magiera
9bef202050 Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#34 from ipfs/feat/expose-tests
tests: expose TestSuite

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

This commit was moved from ipfs/boxo@b28c3020da
2019-05-20 17:57:59 +02: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
7a56242f3f Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#29 from ipfs/feat/cidv1-default-base32
switch to base32 cidv1 by default

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

This commit was moved from ipfs/boxo@642365d360
2019-05-13 10:54:36 -07: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
dee1fd31bd Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#28 from ipfs/fix/dht-test
tests: fix a bunch of small test lints/issues

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

This commit was moved from ipfs/boxo@fea9afdab7
2019-04-16 09:59:19 -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
Łukasz Magiera
1a2e8ce6d7 path: drop error from ParsePath
This commit was moved from ipfs/interface-go-ipfs-core@2b9bff7523

This commit was moved from ipfs/boxo@31071e1f5e
2019-04-04 08:53:42 +02:00
Łukasz Magiera
6f77341fd6 Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#26 from hinshun/pin-rm-docs
Update Pin.RmRecursive docs to clarify shared indirect pins are not removed

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

This commit was moved from ipfs/boxo@25b9995074
2019-04-04 08:45:50 +02:00
Edgar Lee
686f55459c Update Pin.RmRecursive docs to clarify shared indirect pins are not removed
This commit was moved from ipfs/interface-go-ipfs-core@c908a059fe

This commit was moved from ipfs/boxo@ea26ae5e05
2019-03-29 16:16:16 -07: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
Steven Allen
adddfdf0f7 tests: fix unused variable lints
This commit was moved from ipfs/interface-go-ipfs-core@5d6a474f31

This commit was moved from ipfs/boxo@bbf450e3e4
2019-03-26 18:38:02 +00:00
Steven Allen
ba5e78a4c5 tests: remove ticker leak
This commit was moved from ipfs/interface-go-ipfs-core@a7d4a71998

This commit was moved from ipfs/boxo@b75b1243fb
2019-03-26 18:37:40 +00:00
Steven Allen
1f87fa6168 tests: remove t.Fatal from goroutines
This commit was moved from ipfs/interface-go-ipfs-core@5f17f8346b

This commit was moved from ipfs/boxo@ccb4a5c183
2019-03-26 18:36:53 +00:00
Steven Allen
6190be29b9 make unrecoverable test errors fatal
Otherwise, we can get random panics form dereferencing nil pointers.


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

This commit was moved from ipfs/boxo@35272d3a3b
2019-03-26 18:27:35 +00:00
Steven Allen
52c10ba876 Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#21 from ipfs/feat/remove-wrap
remove Wrap

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

This commit was moved from ipfs/boxo@a6129a824f
2019-03-25 18:12:12 +00:00
Steven Allen
84faa010ce remove Wrap
This can be trivially implemented by the end-user if desired. The best the
CoreAPI can do is name the file with it's own hash so this isn't really all that
helpful either.

Note: This differs from js-ipfs because _there_, all files have paths (even
outside directories).


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

This commit was moved from ipfs/boxo@a0c8ed3956
2019-03-22 15:05:41 -07:00
Łukasz Magiera
01a22bac92 Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#10 from ipfs/feat/add-wrap-fixes
Unixfs.Wrap Fixes

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

This commit was moved from ipfs/boxo@9106f6a2b3
2019-03-22 17:57:25 +01:00
Łukasz Magiera
905898b667 unixfs add: remove StdinName
This commit was moved from ipfs/interface-go-ipfs-core@e12c21afc0

This commit was moved from ipfs/boxo@f3f74adfdb
2019-03-22 01:13:18 +01:00
Łukasz Magiera
726e8c0db1 unixfs: fix ls test for new add
This commit was moved from ipfs/interface-go-ipfs-core@91f8aac428

This commit was moved from ipfs/boxo@bd1689b886
2019-03-21 19:17:34 +01:00
Łukasz Magiera
a6fe80000c unixfs add: Remove hidden file handling
This commit was moved from ipfs/interface-go-ipfs-core@56944d64d1

This commit was moved from ipfs/boxo@4274224bd0
2019-03-21 19:17:34 +01:00
Łukasz Magiera
01b61d7634 unixfs add: Changes for fixed wrap logic
This commit was moved from ipfs/interface-go-ipfs-core@e87318a2c3

This commit was moved from ipfs/boxo@1ec848f9a2
2019-03-21 19:17:34 +01:00
Steven Allen
5cdd4b3d81 remove target size requirement
It's complicated. We need to carefully think through how sizes work.


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

This commit was moved from ipfs/boxo@f511773674
2019-03-06 16:41:44 -08:00
Steven Allen
30b344a5af switch symlink target type to string
(path can't represent relative paths)


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

This commit was moved from ipfs/boxo@e2900773a6
2019-03-05 11:17:59 -08:00
Steven Allen
cc2b187d07 tests: add symlink target test
(also, fix some error versus fatal nits)


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

This commit was moved from ipfs/boxo@4be6e60dbe
2019-03-05 09:38:35 -08:00
Steven Allen
483caf76fd file type: add stringer
This commit was moved from ipfs/interface-go-ipfs-core@4e99a8e925

This commit was moved from ipfs/boxo@ee697a3b09
2019-03-05 09:38:35 -08:00
Steven Allen
987a46a697 tweak the Ls interface
1. Avoid `ipld.Link`. This is a protodag specific thing that will go away in
   future IPLD versions.
2. Avoid exposing the underlying file types. The user shouldn't care if they're
   dealing with a hamt, etc.
3. Add a field for a symlink's target.
4. Rename LsLink to DirEntry to better this type's role.


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

This commit was moved from ipfs/boxo@9c3cf70c5f
2019-03-04 20:21:25 -08:00
Steven Allen
2223b08104 Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#5 from ipfs/feat/not-supported-error
errors: introduce a 'not supported' error

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

This commit was moved from ipfs/boxo@8fc5c07e6b
2019-02-19 03:46:59 -08:00
Steven Allen
8542b6569a errors: introduce a 'not supported' error
This commit was moved from ipfs/interface-go-ipfs-core@a81e4359ce

This commit was moved from ipfs/boxo@2c70ad1761
2019-02-19 02:44:36 -08:00
Łukasz Magiera
8cc592cde3 Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#3 from ipfs/fix/ps-test-race
Fix Pubsub test race

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

This commit was moved from ipfs/boxo@e5688a22d9
2019-02-12 14:09:24 +01:00
Łukasz Magiera
0a6bdbaa6c pubsub: fix race in test
This commit was moved from ipfs/interface-go-ipfs-core@a84bfa1f40

This commit was moved from ipfs/boxo@bc7e36143f
2019-02-12 13:30:07 +01:00
Łukasz Magiera
152a54ad85 gx-go uw
This commit was moved from ipfs/interface-go-ipfs-core@93299fcb14

This commit was moved from ipfs/boxo@def3b3d805
2019-02-09 01:23:13 +01:00
Łukasz Magiera
af23d0324b Update imports
This commit was moved from ipfs/interface-go-ipfs-core@515a114be2

This commit was moved from ipfs/boxo@5c537a46d3
2019-02-09 01:15:09 +01:00
Łukasz Magiera
46dbdf4d64 coreapi: fix failing dag test
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>


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

This commit was moved from ipfs/boxo@ea6b30e219
2019-02-08 20:38:44 +01:00
Łukasz Magiera
97c433323b coreapi: move namesys options to coreapi
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>


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

This commit was moved from ipfs/boxo@a2f6e434b9
2019-02-08 19:27:39 +01:00
Łukasz Magiera
23d84ed3ef coreapi: cleanup coredag references in interface
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>


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

This commit was moved from ipfs/boxo@d15daa504f
2019-02-08 17:58:56 +01:00
Steven Allen
be9d4de4d4 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>


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

This commit was moved from ipfs/boxo@132387d33d
2019-02-07 17:41:39 -08:00
Steven Allen
2186bb375b Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#5971 from ipfs/fix/coreapi-seek-test
coreapi: fix seek test on http impl

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

This commit was moved from ipfs/boxo@0e2955d8bc
2019-02-06 12:14:13 -08:00
Łukasz Magiera
6e4a14d89d coreapi: fix seek test on http impl
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>


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

This commit was moved from ipfs/boxo@1e59d281df
2019-02-05 20:20:27 +01:00
Łukasz Magiera
abebd4e1d8 block put --pin option
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>


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

This commit was moved from ipfs/boxo@9ea89f3860
2019-02-04 18:05:05 +01:00