Commit Graph

12832 Commits

Author SHA1 Message Date
Gus Eggert
fc97cd02fb fix: update go-ds-flatfs to v0.5.1
Fixes #8579

(cherry picked from commit 024e84adec)
2021-12-03 15:47:56 -05:00
Lucas Molas
042efd3982 fix(corehttp): adjust peer counting metrics (#8577)
(cherry picked from commit 9d197ca732)
2021-12-03 15:47:56 -05:00
Adin Schmahmann
726b9e216c Release v0.11.0-rc1 2021-12-01 09:58:39 -05:00
Adin Schmahmann
d83e3149c5 chore: update deps 2021-11-30 14:45:43 -05:00
Marten Seemann
48a6cac00b
feat: Swarm.EnableHolePunching flag (#8562)
* feat: use Swarm.EnableHolePunching flag within libp2p
* docs: Swarm.EnableHolePunching

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2021-11-30 11:18:51 -08:00
jwh
029d82c4ea
feat: enabling pubsub and ipns-pubsub via config flags (#8510)
* Allow pubsub and namesys-pubsub to be enabled via config

Signed-off-by: Joe Holden <jwh@zorins.us>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2021-11-30 11:00:11 -08:00
Mohsin Zaidi
ecd2628a16
Integrate go-dag-jose plugin (#8569)
* feat(dag-jose): integrate `go-dag-jose` plugin
* test(dag-jose): sharness test for dag-jose plugin

Co-authored-by: Eric Myhre <hash@exultant.us>
2021-11-30 10:58:15 -08:00
Jorropo
c2953ab8f1
feat: Addresses.AppendAnnounce (#8177)
* feat: Addresses.AppendAnnounce

Closes #7791

* fix: deduplicate Swarm.Announce and AppendAnnounce

https://github.com/ipfs/go-ipfs/pull/8177#discussion_r759317772
https://github.com/ipfs/go-ipfs/pull/8177#discussion_r759320332

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2021-11-30 17:58:19 +01:00
dependabot[bot]
4fb4c2dd48 chore(deps): bump github.com/gabriel-vasile/mimetype from 1.1.2 to 1.4.0
Bumps [github.com/gabriel-vasile/mimetype](https://github.com/gabriel-vasile/mimetype) from 1.1.2 to 1.4.0.
- [Release notes](https://github.com/gabriel-vasile/mimetype/releases)
- [Commits](https://github.com/gabriel-vasile/mimetype/compare/v1.1.2...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/gabriel-vasile/mimetype
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 19:18:52 -05:00
Cory Schwartz
a43e506d7f
fix: multibase in pubsub http rpc (#8183)
* multibase encoding on pubsub
* emit multibase for json clients
* refactor(pubsub): base64url for all URL args

This makes it easier to reason about.
Also added better helptext to each command explaining how the binary
data is encoded on the wire, and how to process it in userland.

* refactor: remove ndpayload and lenpayload

Those output formats are undocumented and seem to be only used in tests.
This change removes their implementation and replaces it with error
message to use JSON instead.

I also refactored tests to test the --enc=json response format instead
of imaginary one, making tests more useful as they also act as
regression tests for HTTP RPC.

* test(pubsub): go-ipfs-api

Testing against compatible version from
https://github.com/ipfs/go-ipfs-api/pull/255

* refactor: safeTextListEncoder

Making it clear what it does and why

* refactor(pubsub): unify peerids

This ensures `ipfs pubsub sub` returns the same peerids in the `From`
field as `ipfs pubsub peers`.

libp2p already uses base encoding, no need to double wrap or use custom
multibase.

* test(pubsub): go-ipfs-http-client

* refactor(pubsub): make pub command read from a file

We want to send payload in the body as multipart so users can use
existing tools like curl for publishing arbitrary bytes to a topic.

StringArg was created for "one message per line" use case, and if data
has `\n` or `\r\n` byte sequences, it will cause payload to be split. It
is not possible to undo this, because mentioned sequences are lost, so
we are not able to tell if it was `\n` or `\r\n`

We already avoid this problem in `block put` and `dht put` by reading
payload via FileArg which does not mangle binary data and send it as-is.
It feel like `pubsub pub` should be using it in the first place anyway,
so this commit replaces StringArg with FileArg.

This also closes https://github.com/ipfs/go-ipfs/issues/8454
and makes rpc in go-ipfs easier to code against.

* test(pubsub): publishing with line breaks

Making sure we don't see regressions in the future.
Ref. https://github.com/ipfs/go-ipfs/issues/7939

* chore: disable pubsub interop for now

See
344f692d8c

* test: t0322-pubsub-http-rpc.sh

- Adds HTTP RPC regression test that ensures topic is encoded as URL-safe
  multibase.
- Moves pubsub tests to live in unique range ./t032x

* fix(ci):  js-ipfs with  fixed pubsub wire format

uses js-ipfs from https://github.com/ipfs/js-ipfs/pull/3922 
until js-ipfs release can ship with dependency on go-ipfs 0.11.0-rc1

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2021-11-29 23:06:54 +01:00
Marcin Rataj
72656ea5f7
Merge pull request #8555 from feat/remove-submodule
refactor: remove dir-index-html submodule
2021-11-29 20:43:55 +01:00
Marcin Rataj
82c1bfa0e6 feat: hard deprecation of IPFS_REUSEPORT
Years passed and we still see it. Time to force users to switch to
LIBP2P_TCP_REUSEPORT.
2021-11-29 14:42:30 -05:00
Adin Schmahmann
52c177ced9
feat: go-libp2p 0.16, UnixFS autosharding and go-datastore with contexts (#8563)
* plumb through go-datastore context changes

* update go-libp2p to v0.16.0
* use LIBP2P_TCP_REUSEPORT instead of IPFS_REUSEPORT
* use relay config
* making deprecation notice match the go-ipfs-config key
* docs(config): circuit relay v2
* docs(config): fix links and headers
* feat(config): Internal.Libp2pForceReachability

This switches to config that supports setting and reading
Internal.Libp2pForceReachability OptionalString flag

* use configuration option for static relays

* chore: go-ipfs-config v0.18.0

https://github.com/ipfs/go-ipfs-config/releases/tag/v0.18.0

* feat: circuit v1 migration prompt when Swarm.EnableRelayHop is set (#8559)
* exit when Swarm.EnableRelayHop is set
* docs: Experimental.ShardingEnabled migration

This ensures existing users of global sharding experiment get notified
that the flag no longer works + that autosharding happens automatically.

For people who NEED to keep the old behavior (eg. have no time to
migrate today) there is a note about restoring it with
`UnixFSShardingSizeThreshold`.

* chore: add dag-jose code to the cid command output

* add support for setting automatic unixfs sharding threshold from the config
* test: have tests use low cutoff for sharding to mimic old behavior
* test: change error message to match the current error
* test: Add automatic sharding/unsharding tests (#8547)
* test: refactored naming in the sharding sharness tests to make more sense

* ci: set interop test executor to convenience image for Go1.16 + Node
* ci: use interop master

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Gus Eggert <gus@gus.dev>
Co-authored-by: Lucas Molas <schomatis@gmail.com>
2021-11-29 19:58:05 +01:00
falstack
c00065cc84
chore: fix link in README.md (#8551)
update docs issues link
2021-11-23 23:41:26 +01:00
Marcin Rataj
302c97ffbb chore: cleanup after merging dir-index-html 2021-11-23 20:32:39 +01:00
longfeiW
87fb60b278 Update go generate command and edit readme accordingly 2021-11-23 20:32:39 +01:00
Steve Loeppky
ba2445ae72
Updating release template based off some 0.10 learnings (#8491)
* Updating release template based off some 0.10 learnings

This addresses the easy items in https://github.com/ipfs/go-ipfs/issues/8248

* Further updates based on 2021-10-07 discussion.

* Added OrbitDB to early testers.

* Fixing early tester username references.

* Being clear about how to contact early testers.
2021-11-23 14:32:22 -05:00
mathew-cf
11404a9a03
fix: multiple subdomain gateways on same domain (#8556) 2021-11-23 18:11:37 +01:00
longfeiW
24ab9af00e removed dir-index-html submodule 2021-11-18 14:28:13 +08:00
Dimitris Apostolou
0c2f9d5950
Fix typos (#8548) 2021-11-17 21:16:06 +01:00
Adin Schmahmann
c71a1c2411
ci: run examples against latest go-ipfs even in forks (#8554) 2021-11-17 11:56:44 -08:00
Andrey Kostakov
f6223605e7 Add support for multiple files to ipfs files rm. 2021-11-12 12:07:58 -05:00
Cory Schwartz
873d11d219
add a docker-compose file (#8387) 2021-11-12 12:05:43 -05:00
Lucas Molas
3f4e37f9ac fix(sharness): use -Q option instead of pipe to tail cmd 2021-11-11 10:22:20 -05:00
Yi Cao
3d9cb78ef1
Merge pull request #8545 from xiaoyu2006/patch-1
Add Homebrew installation method.
2021-11-10 10:32:43 -05:00
Marcin Rataj
52a747763f
docs: fix ipfs files cp examples (#8533) 2021-10-29 16:45:53 +02:00
Adin Schmahmann
3e43745592
Merge pull request #8508 from ipfs/fix/link-res-check
fix(unixfs): check for errors before dereferencing the link
2021-10-26 13:03:54 -07:00
Rod Vagg
9e8b6e5b50
chore: replace go-merkledag walk with go-ipld-prime traversal for dag export (#8506)
* chore: replace go-merkledag walk with go-ipld-prime traversal for dag export

This is "safe" now because we can limit duplicate block loads like
go-merkledag does and won't get trapped taking a long time for complex
DAGs. We can do this while we're using an exhaustive selector (like
ExploreAll here) but will need an alternative strategy when we go for
arbitrary selectors.
2021-10-26 14:07:31 -04:00
Adin Schmahmann
acede6f73c
Examples no longer need go mod replace (#8516)
* chore: bump examples to use v0.10.0
* feat: build examples against released packages instead of using replace directives to refer to the parent repo
* ci: run examples against the latest (unreleased) version of go-ipfs
2021-10-26 11:31:50 -04:00
Adin Schmahmann
a18b51b9ea test: test ls incomplete sharded directory 2021-10-25 11:54:48 -04:00
guseggert
5a61bedef5 test: add sharness test for reading ADLs with FUSE 2021-10-20 11:17:43 -04:00
Adin Schmahmann
3ae4af8268
ci: update ipfs interop tests (#8512)
* ci: update ipfs interop tests

Co-authored-by: Alex Potsides <alex@achingbrain.net>
2021-10-15 18:09:48 +02:00
Steven Allen
852684914a fix: allow the levelds compression level to be unspecified
Otherwise, the user will get a confusing panic. And given that we
support "", we might as well support nil.
2021-10-15 11:44:54 -04:00
Petar Maymounkov
2bb2f64c40
feat(ci): attach release assets from dist.ipfs.io (#8494)
Periodically compare release assets in dist.ipfs.io and github. Any assets found in dist.ipfs.io and not in github are copied over.
2021-10-15 08:38:42 -07:00
Steve Loeppky
8836a62438
Merge pull request #8457 from ipfs/docs/raw-leaves-in-cidv1 2021-10-14 08:42:23 -07:00
Steven Allen
9f03f1ff14 fix(unixfs): check for errors before dereferencing the link
If there's an error, the link will be nil, and this will panic.
2021-10-12 12:39:39 -07:00
Steve Loeppky
c55fda4d6c
Merge pull request #8482 from ipfs/chore/agent-version-suffix-for-docker 2021-10-12 08:35:33 -07:00
Marcin Rataj
545571c328
Apply suggestions from code review
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2021-10-11 20:36:06 +02:00
arjunraghurama
6f9351a3ca
Added the missing heathcheck for the container (#8429)
* Added heathcheck for the docker container
2021-10-08 11:27:49 -04:00
Marcin Rataj
0b923b7951 chore: update dir-index-html to v1.2.2
https://github.com/ipfs/dir-index-html/releases/tag/1.2.2
2021-10-07 12:42:17 -04:00
Marcin Rataj
8b7432d6e8
chore: go-ipfs-files v0.0.9 (#8488)
Closes #8445
Closes #8406
2021-10-05 23:53:52 +02:00
Gus Eggert
0a4e484b4f
Update RELEASE_ISSUE_TEMPLATE.md 2021-10-04 15:47:01 -04:00
Gus Eggert
eaf464c41b
Update RELEASE_ISSUE_TEMPLATE.md 2021-10-04 15:28:17 -04:00
Petar Maymounkov
f50d43eb0d
add more logging to flaky TestPeersTotal
Cannot reproduce the flakiness at the moment. The report suggests that connections are established on different transports. Adding logging to show what these transports are.
2021-10-04 08:49:39 -07:00
Marcin Rataj
9f1ba46af3
chore: agent-version-suffix in docker image
Docker image already produces custom AgentVersion, this makes it
explicit and easier to reason about.
2021-10-02 02:05:05 +02:00
Gus Eggert
e4a5513045
Update RELEASE_ISSUE_TEMPLATE.md 2021-10-01 17:04:10 -04:00
Gus Eggert
86dc88c126
Update RELEASE_ISSUE_TEMPLATE.md 2021-10-01 17:02:25 -04:00
Marcin Rataj
67e75cdb39
Merge pull request #56 from ipfs/fix/disable-i18n-for-cids
* fix: disable translation of cids
* fix: explicit language of the document
2021-10-01 18:28:42 +02:00
Marcin Rataj
8deaff5053
fix: explicit language of the document 2021-10-01 18:25:51 +02:00
Marcin Rataj
5d9b6d54f0
fix: disable translation of cids 2021-10-01 18:06:08 +02:00