Commit Graph

12607 Commits

Author SHA1 Message Date
Lucas Molas
cfdfbc3ebc fix(sharness): add extra check in flush=false in files write 2021-09-13 09:37:18 -03:00
guseggert
ef0428af40 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.
2021-09-10 08:12:10 -04:00
guseggert
b2c3959a4f 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.
2021-09-10 07:30:18 -04:00
Gus Eggert
65d570c6cb
chore: update IPFS Desktop testing steps (#8393)
* chore: update IPFS Desktop testing steps

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2021-09-03 17:49:46 +02:00
Steven Allen
701828d300
Merge pull request #8274 from RubenKelevra/patch-6
add more buttons; remove some sections covered in the docs; general cleanup
2021-09-02 03:33:12 -07:00
@RubenKelevra
04d1369a63 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
2021-09-02 12:22:54 +02:00
Steven Allen
9506a576c8
Merge pull request #8397 from jbouwman/bump-lib-example-deps
`go mod tidy` ipfs library example
2021-09-02 03:22:28 -07:00
Jesse Bouwman
cb189c7b78 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
```
2021-08-30 09:00:39 -07:00
Petar Maymounkov
c9cc09f6f7
Cosmetic fixups in examples (#8325)
* test the examples in CI
* combine the two examples into a single one
2021-08-27 11:55:26 -04:00
Max
7b160fbb76 perf: use performance-enhancing FUSE mount options 2021-08-27 11:49:52 -04:00
guseggert
74633ca8a9 fix: fix bifrost typo in comment 2021-08-26 20:07:52 +00:00
guseggert
3e49bb16b4 ci: publish Docker images for bifrost-* branches 2021-08-26 20:07:52 +00:00
guseggert
ae09459e39 chore: add comments to peerlog plugin about being unsupported
and also about the ugly config semantics
2021-08-25 19:02:51 +00:00
guseggert
c3ac1b4282 test: add unit tests for peerlog config parsing 2021-08-25 19:02:51 +00:00
guseggert
a35dd2ea0d 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.
2021-08-25 19:02:51 +00:00
Steven Allen
4e132af3ef 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.
2021-08-23 17:04:51 -04:00
Adin Schmahmann
3dcf651428 update version to v0.11.0-dev 2021-08-23 11:21:54 -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
Gus Eggert
b3f1d65af4 Revert "Disable MAKE_SKIP_PATH"
This reverts commit f0ae6e3417.
2021-08-13 16:38:24 -04:00
Gus Eggert
e162f1afb3 Revert "Remove MAKE_SKIP_PATH test"
This reverts commit 98d2739f45.
2021-08-13 16:37:09 -04:00
Gus Eggert
c40f8d1c80 Update Docker Go version to 1.16.6 2021-08-13 16:33:55 -04:00
Gus Eggert
3a7eaaf7eb Revert "Remove MAKE_SKIP_PATH, update Dockerfile base image"
This reverts commit d3468407aa.
2021-08-13 16:33:31 -04:00
Gus Eggert
4ebec49985 use 2xlarge resource class 2021-08-13 16:02:44 -04:00
Gus Eggert
c1339c8321 save PATH to .bashrc instead of $BASH_ENV 2021-08-13 16:02:36 -04:00
Gus Eggert
5c0061e240 Fix space constant 2021-08-13 16:02:23 -04:00
Marcin Rataj
6e610066f6
fix: macos notarized fs-repo-migrations (#8333)
Uses: https://github.com/ipfs/distributions/pull/381
Closes #8240
2021-08-12 18:52:23 +02:00
Jesse Bouwman
c2e6a22bba Restore dropped error condition check 2021-08-12 09:40:24 -07:00
Jesse Bouwman
155435cb35 Add flag to create parent directories in files cp command
Closes #8289
2021-08-12 09:23:39 -07:00