Commit Graph

11029 Commits

Author SHA1 Message Date
Steven Allen
cc25df768e feat(docker): bump the go version 2020-01-15 17:01:47 -08:00
Steven Allen
432bfc5a84
Merge pull request #6826 from ipfs/define-gateway-pathprefixes
docs: define Gateway.PathPrefixes
2020-01-15 23:48:21 +01:00
Oli Evans
0eba53bd98
docs: define Gateway.PathPrefixes
adds docs for Gateway.PathPrefixes. Taken from great commit notes by @lgierth (thank you!) 09937f84b6
2020-01-15 14:32:05 +00:00
Steven Allen
8a16b8704b
Merge pull request #6823 from ipfs/fix/remove-auto-assign
chore: remove github auto assign
2020-01-13 15:54:33 +01:00
Steven Allen
ea3343cb29 chore: remove github auto assign
This was supposed to auto-assign reviewers to new PRs. However, it's really not all that helpful in practice.
2020-01-13 15:09:06 +01:00
Steven Allen
f804bb67aa
Merge pull request #6819 from ipfs/chore/badger-no-sync
fix(badgerds): turn off sync writes by default
2020-01-10 10:36:20 +01:00
Steven Allen
ff269347b0
Merge pull request #6820 from ipfs/fix/gateway-cleanup
gateway cleanups
2020-01-10 10:35:51 +01:00
Steven Allen
725e6844ee gateway: cleanup logic
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2020-01-10 10:19:13 +01:00
Steven Allen
5eea0a4ba0 http: use Method* constants
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2020-01-10 10:19:08 +01:00
Steven Allen
4e4d5aa742 fix(badgerds): turn off sync writes by default
We already do this in the datastore _profile_, but we should do this in the
plugin as well. I'm pretty sure this makes absolutely no difference.
2020-01-09 09:55:39 +01:00
Steven Allen
7d2f39b33b
Merge pull request #6817 from ipfs/feat/cid-codec-convert
make it possible to change the codec with the `ipfs cid` subcommand
2020-01-08 11:39:01 -08:00
Steven Allen
e58a32ab1e feat(commands/cid): add a flag for setting the codec
This will be useful when testing `refs local, `repo gc`, and `repo verify`
commands once we store blocks by multihash instead of by CID. At that point,
these commands will return raw v1 CIDs as the blockstore won't actually remember
the codec used to store the block.

Flags choice:

* Ideally, we'd use the `-f, --format` flags like every other command but we're
  already using `-f` (format) for the format string.
* Alternatively, I'd like to use `-c`. However, we're using _that_ for a global
  `--config` flag (bit of a waste given that it doesn't work...).

`--codec` will have to do for now.
2020-01-07 19:32:16 -06:00
Steven Allen
f8adc3ebdd fix(commands/cid): always use base58 for CIDv0 unless otherwise specified 2020-01-07 19:20:21 -06:00
Steven Allen
ca2767a920
Merge pull request #6680 from ipfs/fix/symlink-size
improve gateway symlink handling
2020-01-05 16:54:22 -08:00
Steven Allen
c64eb11992 test(gateway): test the lazy seeker 2020-01-05 16:43:45 -08:00
Steven Allen
6cb03d4dfd fix(gateway): fix seek read length typo 2020-01-05 16:43:45 -08:00
Steven Allen
453b78962b chore(gateway): remove dead code 2020-01-05 16:43:45 -08:00
Steven Allen
9a9ec021cf test(sharness): add gateway symlink test 2020-01-05 16:43:44 -08:00
Steven Allen
1a06fb6e2f fix(gateway): correct symlink content type
We should be _resolving_ symlinks (sometimes, still need to figure out when to
do this WRT IPNS). However, that's a larger feature.
2020-01-05 16:43:44 -08:00
Steven Allen
3859f08bf7 fix(gateway): better seeking/sized
1. Require files to have known sizes. We can add support for unknown sizes
_later_ but we can't use ServeContent for those files.
2. Replace the `sizeReadSeeker` with a `lazySeeker`. This one makes no
assumptions about how it's used so we're less likely to run into weird bugs.
2020-01-05 16:43:44 -08:00
Steven Allen
e8a6c0c050 fix(gateway): gracefully handle files with unknown sizes in directory listings 2020-01-05 16:43:44 -08:00
Steven Allen
62451039ec fix(gateway): serve the index with serveFile 2020-01-05 16:43:44 -08:00
Steven Allen
36db5bf63c dep: update go-ipfs-files/go-unixfs
Fixes symlink sizes.
2020-01-05 16:43:42 -08:00
Steven Allen
2b9a2d5eda
Merge pull request #6813 from ipfs/feat/async-badger
feat: update go-ds-badger to use async writes by default.
2020-01-03 14:22:21 -08:00
Steven Allen
daf6fd69f8 feat: update go-ds-badger to use async writes by default.
Go-ipfs now manually calls "sync" on the underlying datastore after adding data.
We can now write asynchronously and sync once at the end.
2020-01-03 14:02:24 -08:00
Steven Allen
e27416992b
Merge pull request #6809 from PoorPocketsMcNewHold/patch-1
Inclusion of the presence of the go-ipfs package in Solus
2019-12-30 09:05:00 -08:00
PoorPockets McNewHold
4c6ff8a134
Inclusion of the presence of the go-ipfs package in Solus
https://dev.getsol.us/T5361
2019-12-29 11:47:09 +00:00
Steven Allen
73419b934b
Merge pull request #6807 from yoverflow/fix-typos
Fix Typos
2019-12-27 09:26:17 -08:00
flowed
07cbba7c40 Fix Typos 2019-12-25 03:12:41 +00:00
Steven Allen
72d01d3bf4
Merge pull request #6805 from ipfs/sharness_macos_no_brainer_fixes
Sharness macos no brainer fixes
2019-12-23 12:36:57 -08:00
Peter Rabbitson
36dcf8eac5 Add two more missed cleanup clauses 2019-12-23 15:41:39 +01:00
Peter Rabbitson
4200bf453b At some point the directory name changed to testbeds
Without reflecting this in the tests we do not actually shut down
correctly during cleanup
2019-12-23 15:41:39 +01:00
Peter Rabbitson
52476c026c Remove couple linux-isms: these are not valid on macos
Some did actually prevent proper test shutdown
2019-12-23 15:41:39 +01:00
Peter Rabbitson
8c6d8d5bd1 Add GOIPFSTEST_SKIP_LOCAL_DEVTREE_DEPS_CHECK escape valve
Set this to '1' if you are doing local dev and have redirects in go.mod
2019-12-23 15:41:30 +01:00
Peter Rabbitson
153e52929a Make the docker check more specific
Docker on a mac might be available, but may not be runnng. The
way the original test was written is linux-specific anyway, so
just hoist the check into the DOCKER declaration
2019-12-23 15:41:30 +01:00
Peter Rabbitson
ba3a7d4a55 socat is not part of any default install, make tests conditional
54b1969c4b correctly switched from nc to socat, but did not account for it
not being as widely available. Adjust tests that depend on it with the
correct message.

There are also a number of comments pertaining to nc - they were not
adjusted.
2019-12-23 15:41:30 +01:00
Steven Allen
3c95f65b21
Merge pull request #6785 from ipfs/feat/async-ds
Support Asynchronous Datastores
2019-12-19 11:45:00 +01:00
Adin Schmahmann
3a0d0e817a support async datastores 2019-12-19 00:59:31 -05:00
Steven Allen
c9e8070082
Merge pull request #6801 from lidel/fix/service-worker-per-root
fix: limit SW registration to content root
2019-12-17 19:44:30 +01:00
Steven Allen
7cc392ba9d
Merge pull request #6804 from ipfs/fix/libp2p-stuff
chore(dep): update go-libp2p
2019-12-17 17:10:56 +01:00
Steven Allen
d3e80fa8a0 chore(dep): update go-libbp2p
* Fixes a panic on close/write race in the websocket transport (https://github.com/libp2p/go-libp2p-kad-dht/pull/422)
* Fixes recursive resolution of dnsaddrs (for bootstrapping).
2019-12-17 16:09:09 +01:00
Marcin Rataj
115b2ba6cd
fix: limit SW registration to content root
Introduces hardening proposed in:
https://github.com/ipfs/go-ipfs/issues/4025#issuecomment-342250616

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2019-12-17 02:20:40 +01:00
Steven Allen
b7f03a56bb
Merge pull request #6538 from ipfs/feat/ipfs-to-p2p
update documentation for /ipfs -> /p2p multiaddr switch
2019-12-16 10:14:56 +01:00
Steven Allen
8f3b274080 fix: move away from deprecated peer ID functions 2019-12-14 19:48:31 +01:00
Steven Allen
ff8e4fc89f test(sharness): fix tests for /ipfs -> /p2p change 2019-12-14 19:41:05 +01:00
Steven Allen
15c35a5a95 doc: update documentation for /ipfs -> /p2p multiaddr switch
See: https://github.com/libp2p/libp2p/issues/79
2019-12-14 19:39:59 +01:00
Steven Allen
61491609d2 chore(dep): update libp2p & go-fs-lock
* fixes #6434
* switches the default libp2p multiaddr format to /p2p/Qm...
2019-12-14 19:39:51 +01:00
Steven Allen
92c0aa70df
Merge pull request #6798 from ipfs/chore/update-deps
chore(dep): update a few deps
2019-12-14 18:13:06 +01:00
Steven Allen
f5b655e53c chore(dep): update a few deps 2019-12-14 17:35:26 +01:00
Steven Allen
1b7f3a8d51
Merge pull request #6758 from ipfs/feat/ipns-persistent-pubsub
IPNS over PubSub as an Independent Transport
2019-12-13 14:55:56 +01:00