Commit Graph

12617 Commits

Author SHA1 Message Date
Adin Schmahmann
0b85d4f28e chore: update go-path
(cherry picked from commit 5471092d85)
2021-09-27 18:13:24 -04:00
Adin Schmahmann
9fe1ea6e01 test: check behavior of loading UnixFS sharded directories with missing shards
(cherry picked from commit 6bf4429082)
2021-09-27 18:13:24 -04:00
Adin Schmahmann
9685afcf32 remove dag put option shortcuts
(cherry picked from commit b83651b220)
2021-09-27 18:13:24 -04:00
Adin Schmahmann
2e8b0bfee7 change names of ipfs dag put flags to make changes clearer
(cherry picked from commit 2920679056)
2021-09-27 18:13:24 -04:00
Marten Seemann
534bd842c1 chore: update go-libp2p to v0.15.0
(cherry picked from commit 4969ed2b17)
2021-09-27 18:13:24 -04:00
Daniel Martí
c1419b525b make json, cbor, and git codecs error on empty input
(cherry picked from commit d6127b062c)
2021-09-27 18:13:24 -04:00
Rod Vagg
b3c3b2b92d feat: dag import --stats (#8237)
* feat: report block count on `dag import`
* fix: clean-up dag import message format
* Only print stats when --stats flag is passed

This applies to both text and json output encoding.

- Stats data is now contained within a Stats datastructure
- Stats are printed after root so that first line of output is the same as previously, even when stats are output using --stats

* fix sharness test

* Add PayloadBytesCount to stats

* Attempt to stabilize flaky tests

* Rename PayloadBytesCount to BlockBytesCount

* Correctly calculate size or imported dag

* Use RawSize of original block for import bytes calc

* test: dag import without --stats

basic regression tests for the default output (text and json)

Co-authored-by: gammazero <gammazero@users.noreply.github.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
(cherry picked from commit 0057199af4)
2021-09-27 18:13:24 -04:00
Marcin Rataj
f7fd3e57a1 feat: ipfs-webui v2.13.0 (#8430)
Release Notes: https://github.com/ipfs/ipfs-webui/releases/tag/v2.13.0

(cherry picked from commit 6a10c1df81)
2021-09-27 18:13:24 -04:00
Lucas Molas
94bd2981b9 feat(cli): add daemon option --agent-version-suffix (#8419)
* feat(cli): add daemon option --agent-version-suffix
* fix sharness test when commit is empty (release)

(cherry picked from commit 3a84352f18)
2021-09-27 18:13:24 -04:00
Andey Robins
ef5dd4a186 feat: multibase transcode command (#8403)
* Add a transcoder command to multibase

In order to more easily facilitate the conversion
between multibase formats, include a transcode command
to avoid `multibase decode | multibase encode`

* Example code needed go mod tidy

Co-authored-by: gammazero <gammazero@users.noreply.github.com>
(cherry picked from commit c89110920e)
2021-09-27 18:13:24 -04:00
Steven Allen
e3dfc930a2 fix: take the lock while listing peers
(cherry picked from commit 92854db7ae)
2021-09-27 18:13:24 -04:00
Takashi Matsuda
6288f0b5ad feature: 'ipfs swarm peering' command (#8147)
* feat: added swarm peering command supporting add, ls and rm

Co-authored-by: Steven Allen <steven@stebalien.com>
(cherry picked from commit a651045c50)
2021-09-27 18:13:24 -04:00
Lucas Molas
bb49492174 fix(sharness): add extra check in flush=false in files write
(cherry picked from commit cfdfbc3ebc)
2021-09-27 18:13:24 -04:00
guseggert
ce64237f26 ci: drop unit tests make jobs back to 1
This was accidentally bumped up, but it doesn't need to be and slows
things down rather than helps.

(cherry picked from commit ef0428af40)
2021-09-27 18:13:24 -04:00
guseggert
a49ff327dc ci: use dynamic config for CircleCI
When developing against ipfs/go-ipfs, we would like to be able to use
the 2xlarge resource class for faster build and test cycles, but many
external contributers will not have this resource class available to
them. There is no direct way to change the resource class, so this
uses dynamic config to generate a parameters JSON obj which is then
fed into the configuration when the workflow starts, based on the Git
URL of the build.

For repos other than ipfs/go-ipfs, this reverts back to the "medium"
resource class with a Make job parallelism of 3.

(cherry picked from commit b2c3959a4f)
2021-09-27 18:13:24 -04:00
Gus Eggert
7f3600cb08 chore: update IPFS Desktop testing steps (#8393)
* chore: update IPFS Desktop testing steps

Co-authored-by: Marcin Rataj <lidel@lidel.org>
(cherry picked from commit 65d570c6cb)
2021-09-27 18:13:24 -04:00
@RubenKelevra
63213c3e58 add more buttons; remove some sections covered in the docs; general cleanup
- added dynamic buttons for packages/downloads which shows the latest version where possible
- dynamic next milestone buttons
- reordered to have package managers and docker on top, manual downloads afterwards
- remove the docker and the cli section, since they are covered equally in the docs + button links
- added more sections to the navigation, to find stuff easier
- dynamic go requirement version button
- some social media buttons
- general cleanup

(cherry picked from commit 04d1369a63)
2021-09-27 18:13:24 -04:00
Jesse Bouwman
3906e6f349 go mod tidy ipfs library example
The code example for using IPFS as a library doesn't run unless indirect dependencies are updated:

```
$ go version
go version go1.17 linux/amd64
$ uname -a
Linux home 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux
$ go run main.go
go: github.com/ipfs/go-ipfs@v0.9.1 requires
	github.com/ipfs/go-bitswap@v0.4.0: missing go.sum entry; to add it:
	go mod download github.com/ipfs/go-bitswap
go: github.com/ipfs/go-ipfs@v0.9.1 requires
	github.com/ipfs/go-bitswap@v0.4.0: missing go.sum entry; to add it:
	go mod download github.com/ipfs/go-bitswap
```

Remedied by:

```
$ go mod tidy
$ go run main.go
-- Getting an IPFS node running --
Spawning node on a temporary repo
    ...
```

Also, require go version 1.16, otherwise, example can fail under go
1.15 with errors like:

```
go build github.com/lucas-clemente/quic-go/internal/qtls:
    build constraints exclude all Go files in
    /home/jbouwman/go/pkg/mod/github.com/lucas-clemente/quic-go@v0.23.0/internal/qtls
```

(cherry picked from commit cb189c7b78)
2021-09-27 18:13:24 -04:00
Petar Maymounkov
f00f7d2464 Cosmetic fixups in examples (#8325)
* test the examples in CI
* combine the two examples into a single one

(cherry picked from commit c9cc09f6f7)
2021-09-27 18:13:24 -04:00
Max
60fdf22cc8 perf: use performance-enhancing FUSE mount options
(cherry picked from commit 7b160fbb76)
2021-09-27 18:13:24 -04:00
guseggert
8516395059 fix: fix bifrost typo in comment
(cherry picked from commit 74633ca8a9)
2021-09-27 18:13:24 -04:00
guseggert
630e5e578e ci: publish Docker images for bifrost-* branches
(cherry picked from commit 3e49bb16b4)
2021-09-27 18:13:24 -04:00
guseggert
810a1749e0 chore: add comments to peerlog plugin about being unsupported
and also about the ugly config semantics

(cherry picked from commit ae09459e39)
2021-09-27 18:13:24 -04:00
guseggert
8f623139c2 test: add unit tests for peerlog config parsing
(cherry picked from commit c3ac1b4282)
2021-09-27 18:13:24 -04:00
guseggert
63dd43b8cd ci: preload peerlog plugin, disable by default
This preloads the peerlog plugin in the ipfs binary, but keeps it
disabled by default. To enabled it, set Enabled=true in its config.

The motivation is to simplify building and deploying gateways, and for
them to use binaries that are more similar to release bins.

(cherry picked from commit a35dd2ea0d)
2021-09-27 18:13:24 -04:00
Steven Allen
0884f2dd70 fix(mkreleaselog): specify the parent commit when diffing
Specifically, if you specify a commit, you get only that commit. This
means you get _nothing_ if you specify a merge commit.

Now, we specify to diff between a commit and it's (merge) parent.

(cherry picked from commit 4e132af3ef)
2021-09-27 18:13:24 -04:00
Adin Schmahmann
2d39130ade Release v0.10.0-rc1 2021-08-20 10:41:17 -04:00
Adin Schmahmann
0bd3d068f6 chore: update deps 2021-08-19 16:50:59 -04:00
Adin Schmahmann
956c24856d
Merge pull request #8354 from ipfs/udpate-libp2p
update go-libp2p to v0.15.0-rc.1
2021-08-19 16:12:54 -04:00
Marten Seemann
c95d6ca08c update go-libp2p to v0.15.0-rc.1 2021-08-19 18:05:04 +02:00
Marten Seemann
b2b8f3866b use a ConnectionManager for filtering addresses 2021-08-19 18:04:48 +02:00
Cory Schwartz
7db27bf83a
feat: add 'ipfs multibase' commands (#8180)
* add multibase helper commands (encode, decode, list)

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2021-08-18 16:48:39 -04:00
Adin Schmahmann
7448340d20
support bitswap configurability (#8268)
* feat: extract Bitswap fx initialization to its own file
* chore: bump go-bitswap dependency
* feat: bump go-ipfs-config dependency and utilize the new Internal.Bitswap configuration options. Add documentation around the new OptionalInteger config type as well as the Internal.Bitswap options.
* docs(docs/config.md): move the table of contents towards the top of the document and update it

Co-authored-by: Petar Maymounkov <petarm@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Gus Eggert <877588+guseggert@users.noreply.github.com>
2021-08-18 14:15:16 -04:00
Gus Eggert
a7e2c23c2d ci: use Go 1.16.7 in .circleci/config.yml 2021-08-18 17:36:31 +00:00
Hannah Howard
f63a997c35
IPLD Prime In IPFS: Target Merge Branch (#7976)
* feat: switch to using go-ipld-prime for codecs, path resolution, and the `dag put/get` commands
* fix: `dag put/get` not roundtripping due to an extra new line being added (https://github.com/ipfs/go-ipfs/issues/3503)

More detailed information is in the CHANGELOG.md file. Very high level:
* IPLD codecs (and their plugins) must use go-ipld-prime
* Added support for the dag-json codec
* `dag get/put` use IPLD codec names from the multicodec table
* `dag get` defaults to dag-json output instead of json, but may output with other codecs
* Data model pathing can be achieved using the /ipld prefix. For example, you can use `/ipld/QmFoo/Links/0/Hash` to traverse through a DagPB node
* With `dag get/put` the DagPB field names have been changed to match the ones in the protobuf listed in the specification

Co-authored-by: hannahhoward <hannah@hannahhoward.net>
Co-authored-by: Daniel Martí <mvdan@mvdan.cc>
Co-authored-by: acruikshank <acruikshank@example.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Will Scott <will.scott@protocol.ai>
Co-authored-by: Will Scott <will@cypherpunk.email>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
Co-authored-by: Eric Myhre <hash@exultant.us>
2021-08-17 13:32:49 -04:00
Gus Eggert
360aff45a7
Merge pull request #8324 from ipfs/update-go-on-ci-guseggert
ci: upgrade to Go 1.16.7 on CI
2021-08-17 16:34:29 +00:00
Gus Eggert
70b3882e5a Use Go 1.16.7 2021-08-17 12:20:50 -04:00
Gus Eggert
679c004a46 Merge branch 'master' into update-go-on-ci-guseggert 2021-08-16 15:24:34 -04:00
Steven Allen
299fc0b725
Merge pull request #8340 from jbouwman/files-cp-parent
Add flag to create parent directories in files cp command
2021-08-14 10:29:05 -07:00
Jesse Bouwman
0af19abe6b Verify creation of file created by cp -p 2021-08-14 09:38:33 -07:00
Jesse Bouwman
ff3fff107b Clean up after cp -p test 2021-08-14 09:34:47 -07:00
Jesse Bouwman
148fe42ebb
Merge branch 'ipfs:master' into files-cp-parent 2021-08-14 07:51:24 -07:00
Gus Eggert
ef1703c07f Increase Make job parallelism to 10 2021-08-13 21:27:41 -04:00
Jesse Bouwman
0d87b474c1 Add test for ipfs files cp -p 2021-08-13 17:21:30 -07:00
Steven Allen
7c76118b0b
Merge pull request #8318 from ipfs/fix/path-panic
fix: avoid out of bounds error when rendering short hashes
2021-08-13 14:54:25 -07:00
Steven Allen
34be171765
Merge pull request #8296 from ipfs/fix/deprecated
fix: remove some deprecated calls
2021-08-13 14:43:58 -07:00
Steven Allen
a945a9d501
Merge pull request #8244 from Lasiar/perf/swarm/set-capacity
perf: set an appropriate capacity
2021-08-13 14:43:30 -07:00
Steven Allen
1156e2203b
Merge pull request #8338 from ipfs/dependabot/go_modules/go.uber.org/zap-1.19.0
build(deps): bump go.uber.org/zap from 1.16.0 to 1.19.0
2021-08-13 14:39:27 -07:00
Steven Allen
6e0f0847bb
Merge pull request #8331 from TakashiMatsuda/fix/node-peering
Fix: Use a pointer type on IpfsNode.Peering
2021-08-13 14:38:25 -07:00
Steven Allen
2138798ea5 fix: remove some deprecated calls 2021-08-13 14:09:43 -07:00