mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
Fix typos (#8548)
This commit is contained in:
parent
c71a1c2411
commit
0c2f9d5950
@ -45,7 +45,7 @@ func testOneFile(f string, t *testing.T) {
|
||||
}
|
||||
|
||||
if !bytes.Equal(vcsData, embdData) {
|
||||
t.Errorf("asset %s: vcs and embedded data isnt equal", f)
|
||||
t.Errorf("asset %s: vcs and embedded data isn't equal", f)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@ -25,10 +25,10 @@ func TestKeyTranslation(t *testing.T) {
|
||||
}
|
||||
|
||||
if pkk != pkname {
|
||||
t.Fatal("keys didnt match!")
|
||||
t.Fatal("keys didn't match!")
|
||||
}
|
||||
|
||||
if ipnsk != ipnsname {
|
||||
t.Fatal("keys didnt match!")
|
||||
t.Fatal("keys didn't match!")
|
||||
}
|
||||
}
|
||||
|
||||
@ -295,7 +295,7 @@ func prepareKnownGateways(publicGateways map[string]*config.GatewaySpec) gateway
|
||||
}
|
||||
|
||||
// isKnownHostname checks Gateway.PublicGateways and returns matching
|
||||
// GatewaySpec with gracefull fallback to version without port
|
||||
// GatewaySpec with graceful fallback to version without port
|
||||
func isKnownHostname(hostname string, knownGateways gatewayHosts) (gw *config.GatewaySpec, ok bool) {
|
||||
// Try hostname (host+optional port - value from Host header as-is)
|
||||
if gw, ok := knownGateways.exact[hostname]; ok {
|
||||
|
||||
@ -28,7 +28,7 @@ func DNSResolver(cfg *config.Config) (*madns.Resolver, error) {
|
||||
var opts []madns.Option
|
||||
var err error
|
||||
|
||||
domains := make(map[string]struct{}) // to track overriden default resolvers
|
||||
domains := make(map[string]struct{}) // to track overridden default resolvers
|
||||
rslvrs := make(map[string]madns.BasicResolver) // to reuse resolvers for the same URL
|
||||
|
||||
for domain, url := range cfg.DNS.Resolvers {
|
||||
@ -58,7 +58,7 @@ func DNSResolver(cfg *config.Config) (*madns.Resolver, error) {
|
||||
}
|
||||
}
|
||||
|
||||
// fill in defaults if not overriden by the user
|
||||
// fill in defaults if not overridden by the user
|
||||
for domain, url := range defaultResolvers {
|
||||
_, ok := domains[domain]
|
||||
if ok {
|
||||
|
||||
@ -1589,7 +1589,7 @@ Example:
|
||||
|
||||
Be mindful that:
|
||||
- Currently only `https://` URLs for [DNS over HTTPS (DoH)](https://en.wikipedia.org/wiki/DNS_over_HTTPS) endpoints are supported as values.
|
||||
- The default catch-all resolver is the cleartext one provided by your operating system. It can be overriden by adding a DoH entry for the DNS root indicated by `.` as illustrated above.
|
||||
- The default catch-all resolver is the cleartext one provided by your operating system. It can be overridden by adding a DoH entry for the DNS root indicated by `.` as illustrated above.
|
||||
- Out-of-the-box support for selected decentralized TLDs relies on a [centralized service which is provided on best-effort basis](https://www.cloudflare.com/distributed-web-gateway-terms/). The implicit DoH resolvers are:
|
||||
```json
|
||||
{
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Publishing go-ipfs as a snap
|
||||
|
||||
> Snap is the default package manager for ubuntu since the release of 20.04. This doc captures what we know about building go-ipfs as a snap packge and publishing it to the snapstore.
|
||||
> Snap is the default package manager for ubuntu since the release of 20.04. This doc captures what we know about building go-ipfs as a snap package and publishing it to the snapstore.
|
||||
|
||||
The go-ipfs snap is defined in [snap/snapcraft.yaml](https://github.com/ipfs/go-ipfs/blob/master/snap/snapcraft.yaml). For more detail on our snapcraft.yaml see: https://github.com/ipfs-shipyard/ipfs-snap
|
||||
|
||||
@ -15,7 +15,7 @@ Linux user can install go-ipfs with:
|
||||
$ snap install ipfs
|
||||
```
|
||||
|
||||
Apps installed via Snapcraft are auto-updating by default. Snapcraft uses 'Release Channels' to let the user pick their stability level, with channels for `stable`, `candidate`, `beta` and `edge`. Snap will install the lasest release from the `stable` channel by default. A user that wants to test out the bleeding edge can opt in by passing the `--edge` flag
|
||||
Apps installed via Snapcraft are auto-updating by default. Snapcraft uses 'Release Channels' to let the user pick their stability level, with channels for `stable`, `candidate`, `beta` and `edge`. Snap will install the latest release from the `stable` channel by default. A user that wants to test out the bleeding edge can opt in by passing the `--edge` flag
|
||||
|
||||
```
|
||||
$ snap install --edge ipfs
|
||||
@ -182,10 +182,10 @@ The `ipfs` snapcraft.io listing can be edited by
|
||||
- @lidel
|
||||
- @olizilla
|
||||
|
||||
You need a Canonical developer account, then ask an existing owner to add you. Accsess is managed here https://dashboard.snapcraft.io/snaps/ipfs/collaboration/
|
||||
You need a Canonical developer account, then ask an existing owner to add you. Access is managed here https://dashboard.snapcraft.io/snaps/ipfs/collaboration/
|
||||
|
||||
|
||||
The launchpad.net config is managed by [**IPFS Maintainers**](https://launchpad.net/~ipfs) team, and you can request to join that team with your Canonical developer acccount. The list of maintainers is here: https://launchpad.net/~ipfs/+members
|
||||
The launchpad.net config is managed by [**IPFS Maintainers**](https://launchpad.net/~ipfs) team, and you can request to join that team with your Canonical developer account. The list of maintainers is here: https://launchpad.net/~ipfs/+members
|
||||
|
||||
At the time of writing the launchpad maintainers are:
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# This file will be overwritten on package upgrades, avoid customizations here.
|
||||
#
|
||||
# To make persistant changes, create file in
|
||||
# To make persistent changes, create file in
|
||||
# "/etc/systemd/system/ipfs.service.d/overwrite.conf" with
|
||||
# `systemctl edit ipfs.service`. This file will be parsed after this
|
||||
# file has been parsed.
|
||||
@ -13,7 +13,7 @@
|
||||
# For more info about custom unit files see systemd.unit(5).
|
||||
|
||||
# This service file enables systemd-hardening features compatible with IPFS,
|
||||
# while breaking compability with the fuse-mount function. Use this one only
|
||||
# while breaking compatibility with the fuse-mount function. Use this one only
|
||||
# if you don't need the fuse-mount functionality.
|
||||
|
||||
[Unit]
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# This file will be overwritten on package upgrades, avoid customizations here.
|
||||
#
|
||||
# To make persistant changes, create file in
|
||||
# To make persistent changes, create file in
|
||||
# "/etc/systemd/system/ipfs.service.d/overwrite.conf" with
|
||||
# `systemctl edit ipfs.service`. This file will be parsed after this
|
||||
# file has been parsed.
|
||||
|
||||
@ -34,7 +34,7 @@ func TestExtractEnabled(t *testing.T) {
|
||||
expected: false,
|
||||
},
|
||||
{
|
||||
name: "returns the vlaue of the Enabled field",
|
||||
name: "returns the value of the Enabled field",
|
||||
config: map[string]interface{}{"Enabled": true},
|
||||
expected: true,
|
||||
},
|
||||
|
||||
@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
// Current dirstibution to fetch migrations from
|
||||
// Current distribution to fetch migrations from
|
||||
CurrentIpfsDist = "/ipfs/QmP7tLxzhLU1KauTRX3jkVkF93pCv4skcceyUYMhf4AKJR" // fs-repo-migrations v2.0.2
|
||||
// Latest distribution path. Default for fetchers.
|
||||
LatestIpfsDist = "/ipns/dist.ipfs.io"
|
||||
|
||||
@ -16,7 +16,7 @@ test_expect_success "set up an iptb cluster" '
|
||||
|
||||
startup_cluster $num_nodes
|
||||
|
||||
test_expect_success "add an obect on one node" '
|
||||
test_expect_success "add an object on one node" '
|
||||
echo "ipns is super fun" > file &&
|
||||
HASH_FILE=$(ipfsi 1 add -q file)
|
||||
'
|
||||
|
||||
@ -18,7 +18,7 @@ test_expect_success "daemon won't start with force pnet env but with no key" '
|
||||
|
||||
unset LIBP2P_FORCE_PNET
|
||||
|
||||
test_expect_success "daemon output incudes info about the reason" '
|
||||
test_expect_success "daemon output includes info about the reason" '
|
||||
grep "private network was not configured but is enforced by the environment" stdout ||
|
||||
test_fsh cat stdout
|
||||
'
|
||||
|
||||
@ -500,7 +500,7 @@ test_files_api() {
|
||||
test_cmp dirhash afterdirhash
|
||||
'
|
||||
|
||||
test_expect_success "cannot write to nonexistant path $EXTRA" '
|
||||
test_expect_success "cannot write to nonexistent path $EXTRA" '
|
||||
test_expect_code 1 ipfs files write $ARGS $RAW_LEAVES /cats/bar/ < output
|
||||
'
|
||||
|
||||
@ -742,12 +742,12 @@ test_files_api() {
|
||||
verify_dir_contents /
|
||||
'
|
||||
|
||||
test_expect_success "remove nonexistant path forcibly" '
|
||||
ipfs files rm --force /nonexistant
|
||||
test_expect_success "remove nonexistent path forcibly" '
|
||||
ipfs files rm --force /nonexistent
|
||||
'
|
||||
|
||||
test_expect_success "remove deeply nonexistant path forcibly" '
|
||||
ipfs files rm --force /deeply/nonexistant
|
||||
test_expect_success "remove deeply nonexistent path forcibly" '
|
||||
ipfs files rm --force /deeply/nonexistent
|
||||
'
|
||||
|
||||
# This one should return code 1 but still remove the rest of the valid files.
|
||||
|
||||
@ -24,7 +24,7 @@ assert_repo_size_less_than() {
|
||||
|
||||
test_expect_success "check repo size" '
|
||||
test "$(get_repo_size)" -lt "$expval" ||
|
||||
{ echo should be bellow "$expval" && test_fsh get_repo_size; }
|
||||
{ echo should be below "$expval" && test_fsh get_repo_size; }
|
||||
'
|
||||
}
|
||||
|
||||
|
||||
@ -110,7 +110,7 @@ EOF
|
||||
ipfs repo gc > /dev/null
|
||||
'
|
||||
|
||||
test_expect_success "gatway no longer has files" '
|
||||
test_expect_success "gateway no longer has files" '
|
||||
test_must_fail curl -f http://127.0.0.1:$GWAY_PORT/ipfs/$HASH1a -o file1.actual
|
||||
test_must_fail curl -f http://127.0.0.1:$GWAY_PORT/ipfs/$HASH2a -o file2.actual
|
||||
'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user