Commit Graph

12219 Commits

Author SHA1 Message Date
Marten Seemann
d631204dee fix race condition when logging requests 2021-02-27 18:36:24 +08:00
Adin Schmahmann
ac82ca5ee9
Merge pull request #7932 from ipfs/docs/dnslink-gw-recipe-fix
docs: fix DNSLink gw recipe
2021-02-20 19:08:50 -05:00
Marcin Rataj
ced3580581
docs: fix DNSLink gw recipe
Unfortunate typo due to additional negation.
2021-02-20 11:46:08 +01:00
Adin Schmahmann
1722eeefa6 Merge branch 'release' 2021-02-18 19:17:32 -05:00
Adin Schmahmann
ce693d7e81
Merge pull request #7924 from ipfs/release-v0.8.0
Release v0.8.0
2021-02-18 17:55:34 -05:00
Adin Schmahmann
30fa364b51 update CHANGELOG for v0.8.0 2021-02-18 17:52:41 -05:00
Adin Schmahmann
9a20c9ebf2 Release v0.8.0 2021-02-18 16:58:12 -05:00
Marcin Rataj
3d8321ab2e docs: RepinInterval
(cherry picked from commit 04838257f8)
2021-02-18 16:55:53 -05:00
Marcin Rataj
94dd4be8f8 style: docs/config.md
Co-authored-by: Jessica Schilling <jessica@protocol.ai>
(cherry picked from commit aaa64baaed)
2021-02-18 16:55:46 -05:00
Marcin Rataj
e29ae2e737 style: improved MFS PinName example
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
(cherry picked from commit af96ded973)
2021-02-18 16:55:37 -05:00
Marcin Rataj
a40cbb03e1 docs: Pinning.RemoteServices.Policies
(cherry picked from commit c338ed83c7)
2021-02-18 16:54:52 -05:00
gammazero
5e330b2806 Fix build issue with go1.16 2021-02-18 13:52:55 -08:00
Adin Schmahmann
9b8308dc07 update deps
* Update some go libraries to pull in bug fixes. This will fix the s3
  plugin. See https://github.com/ipfs/go-ds-s3/pull/146.
* Update other libraries for more bug fixes.

This is intentionally minimal as I'm filing it against the release
branch.
2021-02-18 16:44:16 -05:00
Marcin Rataj
04838257f8 docs: RepinInterval 2021-02-18 16:01:25 -05:00
Marcin Rataj
aaa64baaed style: docs/config.md
Co-authored-by: Jessica Schilling <jessica@protocol.ai>
2021-02-18 16:01:25 -05:00
Marcin Rataj
af96ded973 style: improved MFS PinName example
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2021-02-18 16:01:25 -05:00
Marcin Rataj
c338ed83c7 docs: Pinning.RemoteServices.Policies 2021-02-18 16:01:25 -05:00
Steven Allen
e0d7e11a37
Merge pull request #7919 from ipfs/chore/build-go1.16
Fix build issue with go1.16
2021-02-16 15:41:40 -08:00
gammazero
770f612346 Fix build issue with go1.16 2021-02-16 14:41:03 -08:00
Steven Allen
5f1270c049
Merge pull request #7899 from ipfs/dependabot/go_modules/github.com/ipfs/go-block-format-0.0.3
chore(deps): bump github.com/ipfs/go-block-format from 0.0.2 to 0.0.3
2021-02-16 13:32:56 -08:00
Steven Allen
33c93e2044
Merge pull request #7904 from mvdan/peering-test-logs
peering: add logs before many-second waits
2021-02-16 13:32:35 -08:00
Steven Allen
dafe2bdc90
Merge pull request #7914 from naveensrinivasan/codeql
Create codeql-analysis.yml
2021-02-16 13:28:57 -08:00
Steven Allen
d1c4c90280
ci: remove python from codeql 2021-02-16 13:28:41 -08:00
Steven Allen
c7d4b8d34c
Merge pull request #7900 from mvdan/gofmt-s
all: gofmt -s
2021-02-08 19:01:45 -08:00
Naveen
28fec95166
Create codeql-analysis.yml 2021-02-08 16:44:11 -05:00
Steven Allen
82e6674099 fix: go doesn't allow gnu short flags 2021-02-08 12:49:51 -08:00
Steven Allen
fed5f05134 build: simplify on gofmt 2021-02-08 12:44:15 -08:00
Daniel Martí
5e0c8bbf28 peering: add logs before many-second waits
This test takes a full minute to run, and I was honestly thinking my run
of "go test -v" had simply hung, as I saw no output and no apparent
resource usage.

The least we can do is print a few log messages before the potentially
long waits, to hint that we're still making progress. Each of these
"Eventually" and "Never" calls ends up blocking the test for a few
seconds at a time.
2021-02-06 17:58:18 +00:00
Daniel Martí
17d533909b all: gofmt -s
This "simplify" flag mainly removes redundant types in expressions.

Not particularly important, but a nice change that also makes gopls not
show warnings.
2021-02-05 14:26:08 +00:00
dependabot-preview[bot]
531f37eb6e
chore(deps): bump github.com/ipfs/go-block-format from 0.0.2 to 0.0.3
Bumps [github.com/ipfs/go-block-format](https://github.com/ipfs/go-block-format) from 0.0.2 to 0.0.3.
- [Release notes](https://github.com/ipfs/go-block-format/releases)
- [Commits](https://github.com/ipfs/go-block-format/compare/v0.0.2...v0.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-05 11:24:54 +00:00
Adin Schmahmann
4080333de1 Release v0.8.0-rc2 2021-01-28 23:46:00 -05:00
Adin Schmahmann
1684926d1a Merge branch 'master' into release-v0.8.0 2021-01-28 23:35:21 -05:00
Adin Schmahmann
884a5aebd7 update distpath to version with fs-repo-migrations v1.7.1 2021-01-28 23:22:48 -05:00
Adin Schmahmann
8ed9ffd3a6
Merge pull request #7862 from ipfs/dependabot/go_modules/github.com/stretchr/testify-1.7.0
chore(deps): bump github.com/stretchr/testify from 1.6.1 to 1.7.0
2021-01-28 19:07:00 -05:00
Adin Schmahmann
e5bf4e6c6b
Merge pull request #7861 from ipfs/dependabot/go_modules/github.com/gogo/protobuf-1.3.2
chore(deps): bump github.com/gogo/protobuf from 1.3.1 to 1.3.2
2021-01-28 18:59:33 -05:00
Petar Maymounkov
8794928c31
add remote pinning policy for mfs (#7798)
* remote pinning service MFS policy
* update go-ipfs-config
* hardening secret sanitization in `ipfs config` commands

Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2021-01-28 18:58:44 -05:00
dependabot-preview[bot]
a2f960c12e chore(deps): bump github.com/stretchr/testify from 1.6.1 to 1.7.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.6.1...v1.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-28 18:22:00 -05:00
Adin Schmahmann
ae00327c44
Merge pull request #7885 from ipfs/dependabot/go_modules/github.com/ipfs/go-graphsync-0.6.0
chore(deps): bump github.com/ipfs/go-graphsync from 0.5.2 to 0.6.0
2021-01-28 18:17:57 -05:00
dependabot-preview[bot]
eb894dca7b chore(deps): bump github.com/gogo/protobuf from 1.3.1 to 1.3.2
Bumps [github.com/gogo/protobuf](https://github.com/gogo/protobuf) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/gogo/protobuf/releases)
- [Commits](https://github.com/gogo/protobuf/compare/v1.3.1...v1.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-28 18:14:16 -05:00
dependabot-preview[bot]
50f066f05e chore(deps): bump github.com/ipfs/go-graphsync from 0.5.2 to 0.6.0
Bumps [github.com/ipfs/go-graphsync](https://github.com/ipfs/go-graphsync) from 0.5.2 to 0.6.0.
- [Release notes](https://github.com/ipfs/go-graphsync/releases)
- [Changelog](https://github.com/ipfs/go-graphsync/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ipfs/go-graphsync/compare/v0.5.2...v0.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-28 15:33:05 -05:00
@RubenKelevra
dd295e4560
show the domain name with the error (#7886)
* show the domain name if DNSLink failed to resolve a domain because it wasn't a valid domain name

Original author: @AluisioASG
2021-01-28 15:22:36 -05:00
Andrew Gillis
6f6f04543b
Improve error message when running key command that locks repo (#7821)
* Improve error message when running key commands that must be run when the daemon is not already running

Fixes Issue #7814

`ipfs key export` now does a PreRun check like `ipfs key rotate` was to give a better error to the user then "someone else has the lock" in the event that the daemon is running while trying to execute these offline-only commands.

While unlikely the "someone else has the lock" error can still be shown if two processes try and grab the repo lock at the same time.

This PreRun function is also exported so it can be used by `ipfs init` where it was originally copied from.

* Added more `ipfs key` command tests

When daemon is running:
- Test that import works
- Test that export fails
- Test that rotate fails
2021-01-28 15:15:49 -05:00
Adin Schmahmann
3e7a105676
Merge pull request #7887 from ipfs/docs/clarify-repeated-options
docs: comma delimited options in pin remote --help
2021-01-28 13:31:24 -05:00
Marcin Rataj
3bca93787a
docs: comma delimited options in pin remote --help
This adds clarification suggested in
https://github.com/ipfs/go-ipfs/pull/7823#pullrequestreview-577889138
2021-01-28 17:23:46 +01:00
Adin Schmahmann
89ef0d1956
Merge pull request #7828 from ipfs/fix/normalize-service-endpoint
fix: normalize remote service endpoint
2021-01-28 11:17:40 -05:00
Adin Schmahmann
61f3a2f3a2 fix: restrict remote pinning service endpoint URIs to HTTP/HTTPS 2021-01-27 19:28:58 -05:00
Adin Schmahmann
e0d484431a test: add sharness tests for remote pinning service endpoints that are not http(s) URIs 2021-01-27 19:28:58 -05:00
Marcin Rataj
fc4095cfb3 refactor: url → endpoint
https://github.com/ipfs/go-ipfs/pull/7828#discussion_r543520089
2021-01-27 19:28:58 -05:00
Marcin Rataj
7313a45bc7 fix: url.RawFragment does not work in go1.14
I don't think we need to worry about #hash, so just removed it
2021-01-27 19:28:58 -05:00
Marcin Rataj
6851ede8eb refactor: normalization with path.Clean 2021-01-27 19:28:58 -05:00