Commit Graph

13247 Commits

Author SHA1 Message Date
godcong
be3dbc2bd2
fix(discovery): fix daemon not starting due to mdns startup failure (#8704) 2022-03-09 07:08:24 -08:00
Marcin Rataj
83b3ec4a61
Merge pull request #8756 from laurentsenta/feat/add-back-ipfs-config
Move go-ipfs-config back into go-ipfs,
close https://github.com/ipfs/go-ipfs-config/issues/151
2022-03-09 01:15:08 +01:00
Laurent Senta
6379013e41 ci: tweak example testing to pass with internal config package 2022-03-04 09:45:16 +01:00
Laurent Senta
8d549f03f3 fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
Laurent Senta
c9cf47dad5 config: remove go-ipfs-config code 2022-03-04 09:45:16 +01:00
Laurent Senta
783092ea9f Merge remote-tracking branch 'config/master' into feat/add-back-ipfs-config 2022-03-04 09:44:27 +01:00
Marcin Rataj
d5ad847e05
feat: ipfs-webui v2.15 (#8712)
Release Notes:
https://github.com/ipfs/ipfs-webui/releases/tag/v2.15.0
2022-03-01 19:03:06 +01:00
Marcin Rataj
caba3b2643
feat: X-Ipfs-Roots for smarter HTTP caches (#8720) 2022-03-01 09:04:31 -08:00
Gus Eggert
10ff11b4ca
chore: add instructions for Chocolatey release 2022-03-01 10:35:19 -05:00
Steven Allen
da08acef38
Merge pull request #8750 from ipfs/fix-muxer-prios
fix prioritization of stream muxers
2022-02-28 12:05:25 +00:00
Marten Seemann
3674b662db add a test case for libp2p option prioritization 2022-02-28 15:26:06 +04:00
Marten Seemann
ec46f1e6e4 fix prioritization of stream muxers 2022-02-25 11:44:47 +04:00
Lucas Molas
3ea5631f9a
fix(cmds/keystore): do not allow to import keys we don't generate (#8733) 2022-02-18 23:42:40 +01:00
Adin Schmahmann
686993f6f2
docs: add Internal.UnixFSShardingSizeThreshold (#8723)
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-18 23:37:55 +01:00
Will
bfa9d3db99
feat(cmd): add silent option for repo gc (#7147)
* feat(cmd): add silent option repo gc command

closes #7129

* test(cmd): add test case for silent option for command repo gc
* fix: no emit on server with --silent

This removes unnecessary send to the client that does not care

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-18 22:29:32 +01:00
Adin Schmahmann
9f6cd22ba4 docs(changelog): update v0.12.0 release notes
Add line to the breaking changes section indicating that there's a new version of ipfs-update needed to install go-ipfs v0.12.0
2022-02-18 14:38:09 -05:00
Adin Schmahmann
b565374f7e Merge branch 'release' 2022-02-18 14:20:14 -05:00
Piotr Galar
33423625c7
fix(ci): testground workflow hanging indefinitely (#8741)
* ci: set timeout on testground job
* ci: use testground action which exits early on scheduling failures

Note: this will be continued in https://github.com/ipfs/go-ipfs/issues/8731
2022-02-18 18:25:46 +01:00
Adin Schmahmann
06191dfef3
Merge pull request #8743 from ipfs/release-v0.12.0
Release v0.12.0
2022-02-17 22:24:46 -05:00
Adin Schmahmann
dd7737b931 Release v0.12.0 2022-02-17 21:24:42 -05:00
Adin Schmahmann
51773ac3db docs: v0.12.0 release notes 2022-02-17 21:24:42 -05:00
Adin Schmahmann
815e64f4a6 chore: bump migrations dist.ipfs.io CID to contain fs-repo-11-to-12 v1.0.2 2022-02-17 21:24:42 -05:00
Adin Schmahmann
bf76ebe667 feat: refactor Fetcher interface used for downloading migrations (#8728)
* feat: refactor Fetcher interface used for downloading migrations
* feat: add RetryFetcher for migration downloads
* feat: 3 retries for each HTTP migration download

(cherry picked from commit b1ffc870d5)
2022-02-17 21:24:42 -05:00
Gus Eggert
418bc6e709 feat: log multifetcher errors
This is to make it easier to understand why the multifetcher is
falling back to a different fetcher.

(cherry picked from commit 4f3eb4cdd4)
2022-02-17 21:24:42 -05:00
Marcin Rataj
db85387c67 test: restore ipfs-interop (#8613)
* chore: ipfs@0.61.0

https://github.com/ipfs/js-ipfs/blob/master/packages/ipfs/CHANGELOG.md#0610-2021-12-15

* chore: ipfs-interop@8.0.0

(cherry picked from commit 14046d0002)
2022-02-17 21:24:42 -05:00
dependabot[bot]
5922eab08f
chore(deps): bump go.uber.org/fx from 1.15.0 to 1.16.0 (#8681)
Bumps [go.uber.org/fx](https://github.com/uber-go/fx) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/uber-go/fx/releases)
- [Changelog](https://github.com/uber-go/fx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/fx/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: go.uber.org/fx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 09:16:30 -05:00
Volker Mische
a049ba9d17
fix: installation without sudo (#8715)
* fix: installation without sudo

I think it's good practice that users don't need to run `sudo`
to install something just to try it out. With this change, the
local bin directory is tried first, which usually is also in the
`PATH`. This way the installation script can be run without
`sudo` and should still work.

* fix: try local path last and support spaces in $HOME

Try the `$HOME/.local/bin` path last, so that the script is backwards
compatible. Also make sure that it works even if there are spaces in
the directory set by `$HOME`.
2022-02-16 08:54:29 -05:00
Dimitris Apostolou
b2efcf5ce3
Fix typos (#8726) 2022-02-15 18:50:09 -05:00
Nato Boram
ef63822ef0
fix(build): Recognize Go Beta versions in makefile (#8677)
* 🩹 Fix building with beta Go versions

* ✏️ Use `[:space:]` to be more canonical
2022-02-15 17:47:48 -05:00
Lucas Molas
898065e09c
chore(cmds): encapsulate ipfs rm logic in another function (#8574) 2022-02-15 17:30:47 -05:00
Feiran Yang
e93d6fbfb1
feat: warn user when 'pin remote add' while offline (#8621)
* feat: add warning message when the local node is offline for remote pinning

* feat: check is node is online

* feat: add test in t0700-remotepin.sh

* feat: use grep and fix the test

* fix: print to stdout only when --enc=text

This ensures we don't break JSON produced by --enc=json

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-15 17:19:53 -05:00
Manuel Alonso
edb32ac3d7
chore(gateway): debug logging for the http requests (#8518)
* chore(gateway): better logging for the http requests

* chore(gateway): removed defer and add more data to the final log

* chore(gateway): debug logging refactor

* chore(gateway): use debug w/o context when only msg

* doc: add cmd for log level

* chore: add more logs and address fedback

* chore(gateway): log subdomains and from=requestURI, refactor

* chore(gateway): fix debug redirect
2022-02-15 17:13:09 -05:00
odanado
0216bae307
docker: build for arm cpu (#8633)
ref: #4931
2022-02-15 16:54:47 -05:00
Steven Allen
62979db8f8
Merge pull request #8684 from ipfs/fix/faster-ci-gobuild
fix(ci): faster gobuild job
2022-02-11 17:17:40 -08:00
Adin Schmahmann
b1ffc870d5
feat: refactor Fetcher interface used for downloading migrations (#8728)
* feat: refactor Fetcher interface used for downloading migrations
* feat: add RetryFetcher for migration downloads
* feat: 3 retries for each HTTP migration download
2022-02-11 11:57:51 -08:00
Gus Eggert
4f3eb4cdd4 feat: log multifetcher errors
This is to make it easier to understand why the multifetcher is
falling back to a different fetcher.
2022-02-11 11:48:23 -05:00
Adin Schmahmann
ebf86718c8 chore: update go-path 2022-02-11 09:19:20 -05:00
Marcin Rataj
f9643a61d7
docs: optionalInteger|String|Duration (#8729) 2022-02-10 23:52:18 +01:00
Thibault Meunier
a93907a40f
feat: DNS.MaxCacheTTL for DNS-over-HTTPS resolvers (#8615)
* feat: Add MaxCacheTTL option for DNS-over-HTTPS resolvers
* Update libp2p/go-doh-resolver dependencies to support Options
* feat: Add `DNS.MaxCacheTTL` config documentation
* docs: DNS.MaxCacheTTL
* chore: go-ipfs-config@v0.19.0
Co-authored-by: Gus Eggert <gus@gus.dev>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-10 22:26:14 +01:00
Lucas Molas
a494f48a9d
feat(cmds): ipfs id: support --offline option (#8626)
* feat(cmds): ipfs id: add offline option
* docs: clarify why 'ipfs id <peer>' in offline mode

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-10 20:42:32 +01:00
dependabot[bot]
556c03848f
chore(deps): bump go.uber.org/zap from 1.19.1 to 1.21.0 (#8721)
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.19.1 to 1.21.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.19.1...v1.21.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-10 11:54:23 -05:00
Lucas Molas
fe788cae98
feat(cmds): add cleartext PEM/PKCS8 for key import/export (#8616)
* feat(cmds): add PEM/PKCS8 for key import/export

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Gus Eggert <gus@gus.dev>
2022-02-10 10:45:02 -05:00
Adin Schmahmann
cde79df140
Merge pull request #8713 from shushen/8700-example-updates
fix(docs/examples): update go.mod and CI tests
2022-02-03 01:59:00 -05:00
Shu Shen
012be8ae08 chore: bump to go-ipfs@0.11 in go-ipfs-as-a-library 2022-02-02 21:15:51 -08:00
Shu Shen
fcd3f4963f chore: test go-ipfs-as-a-library against both current and go.mod version 2022-02-02 21:15:51 -08:00
Marcin Rataj
74e6436814 go-ipfs-config: docs: updated flatfs/badger profile helptext (#167)
This is copy-paste from https://github.com/ipfs/go-ipfs/pull/8662
to ensure consistency.
2022-01-28 23:39:10 +01:00
Marcin Rataj
4ad316803e
docs: update badger section in config.md (#8662)
This should fix the issue of users thinking badger
is "no-brainer faster choice" and then running into problems.

Co-authored-by: Johnny <9611008+johnnymatthews@users.noreply.github.com>
2022-01-28 23:22:26 +01:00
Thibault Meunier
9a0bd0fa7a go-ipfs-config: feat: add DNS.MaxCacheTTL for DNS-over-HTTPS resolvers (#161) 2022-01-20 20:04:53 +01:00
Marcin Rataj
32eb6e3176
fix(ci): faster gobuild job
this should make it take way less time without
the need for rewriting make cmd/ipfs-try-build
2022-01-19 19:23:05 +01:00
Marcin Rataj
bc7ddef8dc
fix(ci): interop test parallelism (#8674)
* fix(ci): interop test parallelism

It broke when require got replaced with modern import statement,
and CI run all tests four times.. every time.

* fix(ci): run interop with 2 vCPUs

We often have 3 processes (tests and 2 or more IPFS nodes)

* fix(ci): cache npm during interop

* fix(ci): run interop on 2xlarge

It is similar load as sharness, so let's use same beefy box

* fix(ci): enable ipfs-webui

it was skipping due to missing chromium binary

* fix(ci): force fresh npm cache during interop

Needed to pull-in @chainsafe/libp2p-noise@5.0.2
2022-01-17 19:14:23 +01:00