Commit Graph

10437 Commits

Author SHA1 Message Date
Steven Allen
4b7a24f0af
Merge pull request #6266 from ipfs/fix/fd-limit
raise default fd limit to 8192
2019-05-10 09:37:17 -07:00
Steven Allen
e240316c2b
Merge pull request #6311 from ipfs/fix/6295
pin: don't walk all pinned blocks when removing a non-existent pin
2019-05-09 15:34:00 -07:00
Steven Allen
857080b5c3
Merge pull request #6308 from ipfs/fix/mfs-regression
Update to latest go-mfs
2019-05-09 15:33:39 -07:00
Steven Allen
518a66e7e5
Merge pull request #6316 from ipfs/dep/update-goprocess
dep: update goprocess
2019-05-09 15:33:22 -07:00
Steven Allen
5fee47c3bd dep: update goprocess
Fixes some panics.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-09 15:23:38 -07:00
Steven Allen
9722f202bc
Merge pull request #6312 from ipfs/fix/6298
ping: fix a bunch of issues
2019-05-09 12:53:42 -07:00
Erik Ingenito
0448c2a714 dep: update go-mfs
fixes https://github.com/ipfs/go-mfs/issues/75

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-09 02:30:39 -07:00
Steven Allen
a5066255d7
Merge pull request #6222 from ipfs/fix/dht-321
test(coreapi): use a thread-safe datastore everywhere
2019-05-08 23:49:58 -07:00
Steven Allen
1081d04087
Merge pull request #5560 from ipfs/features/dockerfile-ipfs-mount-4329
fix(Dockerfile): Allow ipfs mount in Docker container
2019-05-08 23:44:45 -07:00
hannahhoward
d0ed138246 fix(Dockerfile): Allow ipfs mount in Docker container
fixes #4329

License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2019-05-08 23:35:30 -07:00
Steven Allen
3803a6e5eb ping: fixup sharness tests
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 23:15:16 -07:00
Steven Allen
6e2858e8b6 ping: cleanup error message
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 23:12:12 -07:00
Steven Allen
3c9be59c95 dep: update go-ipfs-cmds
(fixes double printing of errors)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 23:10:44 -07:00
Steven Allen
e511b4cc57 ping: return an error on failure
Use PingResult errors for errors attached to individual pings.

This is a (minor) BREAKING CHANGE.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 23:06:47 -07:00
Steven Allen
6a91d14888 ping: compute average latency when interrupted
(this should always have been done on the client, IMO, but, oh well...)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 22:54:32 -07:00
Steven Allen
cab9ddf1ed ping: don't return success on failed pings
fixes #6298

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 22:54:22 -07:00
Steven Allen
f0addb4319 pin: don't walk all pinned blocks when removing a non-existent pin
We do this _just_ to make the error nicer but it's really slow. Additionally, we
do it while holding the pin lock, blocking all other pin operations.

fixes #6295

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 21:41:42 -07:00
Steven Allen
fdbd501f6f
Merge pull request #6309 from lidel/patch-2
docs: fix Routing section
2019-05-08 13:50:45 -07:00
Marcin Rataj
4c6268eaa3
docs: update Routing config
Updated docs to reflect that Routing is not a child of Discovery
Ref. 664ccd976e/routing.go (L6)

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2019-05-08 22:01:36 +02:00
Erik Ingenito
227da14e58 Update to latest go-mfs 2019-05-08 12:37:07 -07:00
Steven Allen
bfd4ec5c36
Merge pull request #6301 from ipfs/update-license
License update to dual MIT and Apache 2
2019-05-06 12:14:21 -07:00
MollyM
e421447208
Update COPYRIGHT
transitional comments
2019-05-06 12:11:27 -07:00
MollyM
52aa24d085
Delete LICENSE
moving to copyright file
2019-05-06 12:11:07 -07:00
MollyM
407a3752b6
add transitional comments
described here: https://github.com/ipfs/team-mgmt/issues/849
2019-05-06 12:06:08 -07:00
MollyM
c1b7003042
Create LICENSE-APACHE 2019-05-06 11:01:16 -07:00
MollyM
4941b499d9
Create COPYRIGHT 2019-05-06 10:58:33 -07:00
MollyM
6bd310decf
License update to dual MIT and Apache 2
This series of commits aims to update go-ipfs to follow a dual-licensing best practice based on research into open-source licensing by @ianjdarrow. He recommends a dual MIT and Apache 2.0 license -

> This has two major benefits:

> - There are concerns in the open source community about whether the MIT license leaves users vulnerable to patent infringement claims. We think the pure legal risk is small, but the way the open source community interacts with our project is really important. It makes sense to pick the license that makes the largest number of people comfortable.
- There's now no reason to adopt a separate DCO, since the Apache-2 license grant addresses the same issue.

> Why use a dual license, instead of just Apache-2? The Apache-2 license is incompatible with the GPLv2 license, which includes things like the Linux kernel. With a dual license, GPLv2 projects can just use the MIT license instead. Our goal is to make our software available to as many projects as possible, so we'd rather adopt a licensing scheme that doesn't exclude anyone.

In addition to these commits, we also need to get an explicit OK from current and past contributors to give their consent to relicensing - which will happen in an issue thread.
2019-05-06 10:56:15 -07:00
Steven Allen
7e9eb72bfc
Merge pull request #6293 from cbuesser/go-test-fix
Go test fix
2019-05-02 17:03:06 -07:00
Christopher Buesser
5ce2deb5fc Test Fix: Nil error handling
In TestExternalUnmount, the Mount function is called which returns an
error which can be nil. The error type is then used in a comparison
where Error() is called on it. If the error is nil, this results in a
panic.

Added a if err != nil {} guard to make sure that Error() is not called
if the value is nil
 On branch go-test-fix
 Changes to be committed:
	modified:   fuse/node/mount_test.go
License: MIT
Signed-off-by: Chris Buesser <christopher.buesser@gmail.com>
2019-05-02 19:43:46 -04:00
Christopher Buesser
93806601d1 Test Fix: nil pointer error for core.NewNode
This commit fixes the errors resulting from passing a nil pointer to the
core.NewNode function in TestExternalUnmmount and setupIpnsTest.

In the previous nil's place a &core.BuildCfg{} is now passed.

Both changes follow the same pattern:

```diff
-  node, err = core.NewNode(context.Background(), nil)
+  node, err = core.NewNode(context.Background(), &core.BuildCfg{})
```

 On branch go-test-fix
 Changes to be committed:
	modified:   fuse/ipns/ipns_test.go
	modified:   fuse/node/mount_test.go
License: MIT
Signed-off-by: Chris Buesser <christopher.buesser@gmail.com>
2019-05-02 19:30:36 -04:00
Steven Allen
5fd5d44479
Merge pull request #6275 from ipfs/fix/6269-a
commands(pin update): return resolved CIDs instead of paths
2019-05-02 09:35:02 -07:00
Steven Allen
af8edb064a
Merge pull request #6289 from ipfs/fix/auto-nat-service
core: fix autonat construction
2019-05-01 19:22:29 -07:00
Steven Allen
b57956c5fb core: fix autonat construction
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 15:21:29 -07:00
Steven Allen
648fa3aac7
Merge pull request #6288 from ipfs/fix/6252
Test and fix GC/pin bug
2019-05-01 14:35:53 -07:00
Erik Ingenito
4427d7e8e3 Test and fix GC/pin bug #6252
License: MIT
Signed-off-by: Erik Ingenito <erik.ingenito@protocol.ai>
2019-05-01 14:25:31 -07:00
Steven Allen
f8c8f383db test(coreapi): use a thread-safe datastore everywhere
fixes https://github.com/libp2p/go-libp2p-kad-dht/issues/321

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 13:54:41 -07:00
Steven Allen
a59b93b078
Merge pull request #6285 from ipfs/dep/update-go-ipfs-config
dep: update go-ipfs-config
2019-05-01 13:53:16 -07:00
Steven Allen
59370f890b dep: import goprocess into go modules
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 12:43:26 -07:00
Steven Allen
0defe54899 dep: update go-ipfs-config
fixes #6284

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 12:43:04 -07:00
Steven Allen
a8fa9dd05a test: dht put/get round trips
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 11:41:01 -07:00
Steven Allen
0f53ad0971
Merge pull request #6282 from cbuesser/go-version-check
GOCC implementation & fix in make & build scripts
2019-04-30 20:03:11 -07:00
Christopher Buesser
f31dd2aae6 GOCC implementation & fix in make & build scripts
The usage of a native 'go' command has been replaced with a make &
environment variable $GOCC. This enables building with multiple go
versions on a single machine as documented:
  * https://golang.org/doc/install#extra_versions

This enables the usage of:
```bash
$ make install
$ # OR
$ GOCC=go1.12.3 make install
$ # OR
$ GOCC=go1.12.4 make install
```
And the build and test tools now pick up on this change

 On branch go-version-check
 Changes to be committed:
	modified:   Rules.mk
	modified:   bin/check_go_version
	modified:   bin/dist_get
	modified:   bin/maketarball.sh
	modified:   coverage/Rules.mk
	modified:   mk/golang.mk
	modified:   mk/tarball.mk
License: MIT
Signed-off-by: Chris Buesser <christopher.buesser@gmail.com>
2019-04-30 21:22:43 -04:00
Steven Allen
64744521cb
Merge pull request #6281 from ipfs/fix/6279
gc: cancel context
2019-04-30 12:35:56 -07:00
Steven Allen
223cae0f9c gc: cancel context
We were canceling the context in `GarbageCollect` but some functions call `GC`
directly. Move the context cancelation down to where we actually _need_ it.

fixes #6279

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-30 12:09:08 -07:00
Steven Allen
832077b0e8
Merge pull request #6280 from ipfs/dep/update-multistream
dep: update multistream
2019-04-30 11:10:14 -07:00
Steven Allen
aea5b9ffd7 dep: update multistream
Reduce lock contention

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-30 10:56:45 -07:00
Steven Allen
807f45eb11
Merge pull request #6278 from ipfs/windows-friendly-deamon-help
fix: windows friendly daemon help
2019-04-30 09:07:58 -07:00
Oli Evans
be5d5fdca6
fix: windows friendly daemon help
tweak the daemon --help output to use escaped double quotes instead
of single quotes so the same command can be used on windows.

fixes: #2034

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-04-30 09:26:09 +01:00
Steven Allen
cc2ab147ab commands(dht): load arguments from request body
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-30 01:06:10 -07:00
Steven Allen
9027eaa426 commands(dht): base64 encode value in get
Otherwise, it seems that something is treating this as UTF8 and normalizing it?

fix half of #3124

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-30 01:03:44 -07:00