From 667b9fdf65daa09936444eecceac88f9de3f77f3 Mon Sep 17 00:00:00 2001 From: Kenshi Kamata Date: Wed, 28 Aug 2019 02:55:09 +0900 Subject: [PATCH] Fix typo (#1358) * fix duplicated 'the' * fix typo found by misspell --- docs/content/configuration/sumdb.md | 4 ++-- pkg/config/config.go | 2 +- pkg/storage/compliance/tests.go | 2 +- scripts/check_conflicts.sh | 2 +- scripts/ps/test_e2e.ps1 | 2 +- scripts/test_e2e.sh | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/content/configuration/sumdb.md b/docs/content/configuration/sumdb.md index 9f6f0d35..a7d91c80 100644 --- a/docs/content/configuration/sumdb.md +++ b/docs/content/configuration/sumdb.md @@ -7,7 +7,7 @@ weight: 2 ## Proxying A Checksum DB The Athens Proxy has the ability to proxy a Checksum Database as defined by [this proposal](https://go.googlesource.com/proposal/+/master/design/25530-sumdb.md) by the Go team. -Athens by defualt will accept proxying `https://sum.golang.org`. However, if you'd like to override that behavior or proxy more Checksum DBs you can do so through the `SumDBs` config or its equivalent Environment Variable: `ATHENS_SUM_DBS` +Athens by default will accept proxying `https://sum.golang.org`. However, if you'd like to override that behavior or proxy more Checksum DBs you can do so through the `SumDBs` config or its equivalent Environment Variable: `ATHENS_SUM_DBS` So for example, if you run the following command: @@ -17,7 +17,7 @@ GOPROXY= go build The Go command will proxy requests to `sum.golang.org` like this: `/sumdb/sum.golang.org`. Feel free to read the linked proposal above for the exact requests that makes Athens successfully proxy Checksum DB APIs. -Note that as of this documentation (May 2019), you need to explicitly set `GOSUMDB=https://sum.golang.org`, but the Go team is planning on enabling this by defualt. +Note that as of this documentation (May 2019), you need to explicitly set `GOSUMDB=https://sum.golang.org`, but the Go team is planning on enabling this by default. ### Why a Checksum DB? diff --git a/pkg/config/config.go b/pkg/config/config.go index df45492f..de927456 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -130,7 +130,7 @@ func (c *Config) TLSCertFiles() (cert, key string, err error) { } if keyFile.Mode()&077 != 0 && runtime.GOOS != "windows" { - return "", "", fmt.Errorf("TLSKeyFile should not be accessable by others") + return "", "", fmt.Errorf("TLSKeyFile should not be accessible by others") } return certFile.Name(), keyFile.Name(), nil diff --git a/pkg/storage/compliance/tests.go b/pkg/storage/compliance/tests.go index c843c645..95582ca5 100644 --- a/pkg/storage/compliance/tests.go +++ b/pkg/storage/compliance/tests.go @@ -188,7 +188,7 @@ func testShouldNotExist(t *testing.T, b storage.Backend) { } // testDelete tests that a module can be deleted from a -// storage Backend and the the Exists method returns false +// storage Backend and the Exists method returns false // afterwards. func testDelete(t *testing.T, b storage.Backend) { ctx := context.Background() diff --git a/scripts/check_conflicts.sh b/scripts/check_conflicts.sh index 781c090d..98c0f8fe 100755 --- a/scripts/check_conflicts.sh +++ b/scripts/check_conflicts.sh @@ -2,7 +2,7 @@ # check_conflicts.sh # this script checks for changes to files OTHER THAN *.go, go.mod and go.sum -# ensuring no git merge conflict artifacts are being commited. +# ensuring no git merge conflict artifacts are being committed. # i.e. <<<<<<>>>>>>branch-name # # this is intended to be used in your CI tests diff --git a/scripts/ps/test_e2e.ps1 b/scripts/ps/test_e2e.ps1 index eb09c4f3..30c48978 100755 --- a/scripts/ps/test_e2e.ps1 +++ b/scripts/ps/test_e2e.ps1 @@ -1,5 +1,5 @@ # Execute end-to-end (e2e) tests to verify that everything is working right -# from the end user perpsective +# from the end user perspective $repoDir = Join-Path $PSScriptRoot ".." | Join-Path -ChildPath ".." if (-not (Test-Path env:GO_BINARY_PATH)) { $env:GO_BINARY_PATH = "go" } diff --git a/scripts/test_e2e.sh b/scripts/test_e2e.sh index da97578d..7d3e4595 100755 --- a/scripts/test_e2e.sh +++ b/scripts/test_e2e.sh @@ -2,7 +2,7 @@ # test_e2e.sh # Execute end-to-end (e2e) tests to verify that everything is working right -# from the end user perpsective +# from the end user perspective set -xeuo pipefail REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )/.."