Skip to content

Commit db88daf

Browse files
committed
chore: resolve go.mod conflicts with master
2 parents 57d5462 + 1efa29d commit db88daf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+438
-298
lines changed

.circleci/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ jobs:
367367
- ~/.cache/ms-playwright
368368
- ~/ipfs/go-ipfs/ipfs-webui/node_modules
369369
# We only run build as a test here. DockerHub images are built and published
370-
# by Github Action now: https://github.com/ipfs/go-ipfs/pull/8467
370+
# by GitHub Action now: https://github.com/ipfs/go-ipfs/pull/8467
371371
docker-build:
372372
executor: dockerizer
373373
steps:

.github/workflows/stale.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Close and mark stale issue
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
stale:
9+
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
15+
steps:
16+
- uses: actions/stale@v3
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
stale-issue-message: 'Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.'
20+
close-issue-message: 'This issue was closed because it is missing author input.'
21+
stale-issue-label: 'kind/stale'
22+
any-of-labels: 'need/author-input'
23+
exempt-issue-labels: 'need/triage,need/community-input,need/maintainer-input,need/maintainers-input,need/analysis,status/blocked,status/in-progress,status/ready,status/deferred,status/inactive'
24+
days-before-issue-stale: 6
25+
days-before-issue-close: 7
26+
enable-statistics: true

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4473,10 +4473,10 @@ The scripts in https://github.com/ipfs/go-ipfs-example-plugin have been updated
44734473
- regenerate the testdata certificate with SAN instead of CommonName ([lucas-clemente/quic-go#2723](https://github.com/lucas-clemente/quic-go/pull/2723))
44744474
- make it possible to use multiple qtls versions at the same time, add support for Go 1.15 ([lucas-clemente/quic-go#2720](https://github.com/lucas-clemente/quic-go/pull/2720))
44754475
- add fuzzing for transport parameters ([lucas-clemente/quic-go#2713](https://github.com/lucas-clemente/quic-go/pull/2713))
4476-
- run golangci-lint on Github Actions ([lucas-clemente/quic-go#2700](https://github.com/lucas-clemente/quic-go/pull/2700))
4476+
- run golangci-lint on GitHub Actions ([lucas-clemente/quic-go#2700](https://github.com/lucas-clemente/quic-go/pull/2700))
44774477
- disallow values above 2^60 for Config.MaxIncoming{Uni}Streams ([lucas-clemente/quic-go#2711](https://github.com/lucas-clemente/quic-go/pull/2711))
44784478
- never send a value larger than 2^60 in MAX_STREAMS frames ([lucas-clemente/quic-go#2710](https://github.com/lucas-clemente/quic-go/pull/2710))
4479-
- run the check for go generated files on Github Actions instead of Travis ([lucas-clemente/quic-go#2703](https://github.com/lucas-clemente/quic-go/pull/2703))
4479+
- run the check for go generated files on GitHub Actions instead of Travis ([lucas-clemente/quic-go#2703](https://github.com/lucas-clemente/quic-go/pull/2703))
44804480
- update QUIC draft version information in README ([lucas-clemente/quic-go#2715](https://github.com/lucas-clemente/quic-go/pull/2715))
44814481
- remove Fuzzit badge from README ([lucas-clemente/quic-go#2714](https://github.com/lucas-clemente/quic-go/pull/2714))
44824482
- use the correct return values in Fuzz() functions ([lucas-clemente/quic-go#2705](https://github.com/lucas-clemente/quic-go/pull/2705))
@@ -4805,7 +4805,7 @@ Use-cases:
48054805
- feat(gateway): show the absolute path and CID every time ([ipfs/go-ipfs#7219](https://github.com/ipfs/go-ipfs/pull/7219))
48064806
- fix: do not use hard coded IPNS Publish maximum timeout duration ([ipfs/go-ipfs#7256](https://github.com/ipfs/go-ipfs/pull/7256))
48074807
- Auto-comment on submitted PRs ([ipfs/go-ipfs#7248](https://github.com/ipfs/go-ipfs/pull/7248))
4808-
- Fixes Github link. ([ipfs/go-ipfs#7239](https://github.com/ipfs/go-ipfs/pull/7239))
4808+
- Fixes GitHub link. ([ipfs/go-ipfs#7239](https://github.com/ipfs/go-ipfs/pull/7239))
48094809
- docs: fix subdomain examples in CHANGELOG ([ipfs/go-ipfs#7240](https://github.com/ipfs/go-ipfs/pull/7240))
48104810
- doc: add snap to the release checklist ([ipfs/go-ipfs#7253](https://github.com/ipfs/go-ipfs/pull/7253))
48114811
- Welcome message for users opening their first issue ([ipfs/go-ipfs#7247](https://github.com/ipfs/go-ipfs/pull/7247))
@@ -10243,8 +10243,8 @@ This is the first Release Candidate. Unless there are vulnerabilities or regress
1024310243
- Improve command descriptions to fit a width of 78 characters. (@RichardLitt, [ipfs/go-ipfs#2779](https://github.com/ipfs/go-ipfs/pull/2779), [ipfs/go-ipfs#2780](https://github.com/ipfs/go-ipfs/pull/2780), [ipfs/go-ipfs#2782](https://github.com/ipfs/go-ipfs/pull/2782))
1024410244
- Fix filename conflict in the debugging guide. (@Kubuxu, [ipfs/go-ipfs#2752](https://github.com/ipfs/go-ipfs/pull/2752))
1024510245
- Decapitalize log messages, according to Golang style guides. (@RichardLitt, [ipfs/go-ipfs#2853](https://github.com/ipfs/go-ipfs/pull/2853))
10246-
- Add Github Issues HowTo guide. (@RichardLitt, @chriscool, [ipfs/go-ipfs#2889](https://github.com/ipfs/go-ipfs/pull/2889), [ipfs/go-ipfs#2895](https://github.com/ipfs/go-ipfs/pull/2895))
10247-
- Add Github Issue template. (@chriscool, [ipfs/go-ipfs#2786](https://github.com/ipfs/go-ipfs/pull/2786))
10246+
- Add GitHub Issues HowTo guide. (@RichardLitt, @chriscool, [ipfs/go-ipfs#2889](https://github.com/ipfs/go-ipfs/pull/2889), [ipfs/go-ipfs#2895](https://github.com/ipfs/go-ipfs/pull/2895))
10247+
- Add GitHub Issue template. (@chriscool, [ipfs/go-ipfs#2786](https://github.com/ipfs/go-ipfs/pull/2786))
1024810248
- Apply standard-readme to the README file. (@RichardLitt, [ipfs/go-ipfs#2883](https://github.com/ipfs/go-ipfs/pull/2883))
1024910249
- Fix issues pointed out by `govet`. (@Kubuxu, [ipfs/go-ipfs#2854](https://github.com/ipfs/go-ipfs/pull/2854))
1025010250
- Clarify `ipfs get` error message. (@whyrusleeping, [ipfs/go-ipfs#2886](https://github.com/ipfs/go-ipfs/pull/2886))

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Before opening an issue, consider using one of the following locations to ensure
2424

2525
## Next milestones
2626

27-
[Milestones on Github](https://github.com/ipfs/go-ipfs/milestones)
27+
[Milestones on GitHub](https://github.com/ipfs/go-ipfs/milestones)
2828

2929
<!-- ToDo automate creation of these
3030
[![GitHub milestone version 0.9.1](https://img.shields.io/github/milestones/progress/ipfs/go-ipfs/51?logo=ipfs&style=flat-square&cacheSeconds=3600)](https://github.com/ipfs/go-ipfs/milestone/51)
@@ -47,24 +47,26 @@ Before opening an issue, consider using one of the following locations to ensure
4747
- [Other package managers](#other-package-managers)
4848
- [Guix](#guix)
4949
- [Snap](#snap)
50-
- [macOS package managers](#macos-package-managers)
51-
- [MacPorts](#MacPorts)
52-
- [Nix](#nix-macos)
53-
- [Homebrew](#Homebrew)
50+
- [macOS package managers](#macos-package-managers)
51+
- [MacPorts](#macports)
52+
- [Nix](#nix-macos)
53+
- [Homebrew](#homebrew)
5454
- [Windows package managers](#windows-package-managers)
5555
- [Chocolatey](#chocolatey)
5656
- [Scoop](#scoop)
57-
- [Install prebuilt binaries](#install-prebuilt-binaries)
57+
- [Install prebuilt binaries](#install-prebuilt-binaries)
5858
- [Build from Source](#build-from-source)
5959
- [Install Go](#install-go)
6060
- [Download and Compile IPFS](#download-and-compile-ipfs)
61-
- [Cross Compiling](#cross-compiling)
62-
- [OpenSSL](#openssl)
61+
- [Cross Compiling](#cross-compiling)
62+
- [OpenSSL](#openssl)
6363
- [Troubleshooting](#troubleshooting)
6464
- [Updating go-ipfs](#updating-go-ipfs)
65+
- [Using ipfs-update](#using-ipfs-update)
66+
- [Downloading IPFS builds using IPFS](#downloading-ipfs-builds-using-ipfs)
6567
- [Getting Started](#getting-started)
66-
- [Some things to try](#some-things-to-try)
6768
- [Usage](#usage)
69+
- [Some things to try](#some-things-to-try)
6870
- [Troubleshooting](#troubleshooting-1)
6971
- [Packages](#packages)
7072
- [Development](#development)
@@ -78,11 +80,7 @@ Before opening an issue, consider using one of the following locations to ensure
7880

7981
## Security Issues
8082

81-
The IPFS protocol and its implementations are still in heavy development. This means that there may be problems in our protocols, or there may be mistakes in our implementations. And -- though IPFS is not production-ready yet -- many people are already running nodes in their machines. So we take security vulnerabilities very seriously. If you discover a security issue, please bring it to our attention right away!
82-
83-
If you find a vulnerability that may affect live deployments -- for example, by exposing a remote execution exploit -- please send your report privately to [email protected]. Please DO NOT file a public issue.
84-
85-
If the issue is a protocol weakness that cannot be immediately exploited or something not yet deployed, just discuss it openly.
83+
Please follow [`SECURITY.md`](SECURITY.md).
8684

8785
## Install
8886

@@ -168,7 +166,9 @@ $ sudo snap install ipfs
168166

169167
The snap sets `IPFS_PATH` to `SNAP_USER_COMMON`, which is usually `~/snap/ipfs/common`. If you want to use `~/.ipfs` instead, you can bind-mount it to `~/snap/ipfs/common` like this:
170168

171-
```sudo mount --bind ~/.ipfs ~/snap/ipfs/common```
169+
```
170+
$ sudo mount --bind ~/.ipfs ~/snap/ipfs/common
171+
```
172172

173173
If you want something more sophisticated to escape the snap confinement, we recommend using a different method to install `go-ipfs` so that it is not subject to snap confinement.
174174

SECURITY.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Security Policy
2+
3+
The IPFS protocol and its implementations are still in heavy development. This
4+
means that there may be problems in our protocols, or there may be mistakes in
5+
our implementations. We take security
6+
vulnerabilities very seriously. If you discover a security issue, please bring
7+
it to our attention right away!
8+
9+
## Reporting a Vulnerability
10+
11+
If you find a vulnerability that may affect live deployments -- for example, by
12+
exposing a remote execution exploit -- please **send your report privately** to
13+
[email protected]. Please **DO NOT file a public issue**.
14+
15+
If the issue is a protocol weakness that cannot be immediately exploited or
16+
something not yet deployed, just discuss it openly.
17+
18+
## Reporting a non security bug
19+
20+
For non-security bugs, please simply file a GitHub [issue](https://github.com/ipfs/go-ipfs/issues/new/choose).

cmd/ipfs/add_migrations.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"errors"
66
"fmt"
77
"io"
8-
"io/ioutil"
98
"os"
109
"path/filepath"
1110

@@ -154,7 +153,7 @@ func ipfsGet(ctx context.Context, ufs coreiface.UnixfsAPI, ipfsPath ipath.Path)
154153
if !ok {
155154
return fmt.Errorf("not a file node: %q", ipfsPath)
156155
}
157-
_, err = io.Copy(ioutil.Discard, fnd)
156+
_, err = io.Copy(io.Discard, fnd)
158157
if err != nil {
159158
return fmt.Errorf("cannot read migration: %w", err)
160159
}

cmd/ipfs/daemon.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"errors"
55
_ "expvar"
66
"fmt"
7-
"io/ioutil"
87
"net"
98
"net/http"
109
_ "net/http/pprof"
@@ -331,7 +330,7 @@ func daemonFunc(req *cmds.Request, re cmds.ResponseEmitter, env cmds.Environment
331330

332331
if cacheMigrations || pinMigrations {
333332
// Create temp directory to store downloaded migration archives
334-
migrations.DownloadDirectory, err = ioutil.TempDir("", "migrations")
333+
migrations.DownloadDirectory, err = os.MkdirTemp("", "migrations")
335334
if err != nil {
336335
return err
337336
}
@@ -705,22 +704,23 @@ func printSwarmAddrs(node *core.IpfsNode) {
705704
return
706705
}
707706

708-
var lisAddrs []string
709707
ifaceAddrs, err := node.PeerHost.Network().InterfaceListenAddresses()
710708
if err != nil {
711709
log.Errorf("failed to read listening addresses: %s", err)
712710
}
713-
for _, addr := range ifaceAddrs {
714-
lisAddrs = append(lisAddrs, addr.String())
711+
lisAddrs := make([]string, len(ifaceAddrs))
712+
for i, addr := range ifaceAddrs {
713+
lisAddrs[i] = addr.String()
715714
}
716715
sort.Strings(lisAddrs)
717716
for _, addr := range lisAddrs {
718717
fmt.Printf("Swarm listening on %s\n", addr)
719718
}
720719

721-
var addrs []string
722-
for _, addr := range node.PeerHost.Addrs() {
723-
addrs = append(addrs, addr.String())
720+
nodePhostAddrs := node.PeerHost.Addrs()
721+
addrs := make([]string, len(nodePhostAddrs))
722+
for i, addr := range nodePhostAddrs {
723+
addrs[i] = addr.String()
724724
}
725725
sort.Strings(addrs)
726726
for _, addr := range addrs {

cmd/ipfs/runmain_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package main
66
import (
77
"flag"
88
"fmt"
9-
"io/ioutil"
109
"os"
1110
"testing"
1211
)
@@ -21,7 +20,7 @@ func TestRunMain(t *testing.T) {
2120

2221
p := os.Getenv("IPFS_COVER_RET_FILE")
2322
if len(p) != 0 {
24-
ioutil.WriteFile(p, []byte(fmt.Sprintf("%d\n", ret)), 0777)
23+
os.WriteFile(p, []byte(fmt.Sprintf("%d\n", ret)), 0777)
2524
}
2625

2726
// close outputs so go testing doesn't print anything

config/discovery.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ type Discovery struct {
77
type MDNS struct {
88
Enabled bool
99

10-
// Time in seconds between discovery rounds
11-
Interval int
10+
// DEPRECATED: the time between discovery rounds is no longer configurable
11+
// See: https://github.com/ipfs/go-ipfs/pull/9048#discussion_r906814717
12+
Interval *OptionalInteger `json:",omitempty"`
1213
}

config/init.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ func InitWithIdentity(identity Identity) (*Config, error) {
4343
Identity: identity,
4444
Discovery: Discovery{
4545
MDNS: MDNS{
46-
Enabled: true,
47-
Interval: 10,
46+
Enabled: true,
4847
},
4948
},
5049

0 commit comments

Comments
 (0)