mirror of
https://github.com/gomods/athens
synced 2026-02-03 08:40:31 +00:00
committed by
Aaron Schlesinger
parent
054edde824
commit
667b9fdf65
@@ -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=<athens-url> go build
|
||||
|
||||
The Go command will proxy requests to `sum.golang.org` like this: `<athens-url>/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?
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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. <<<<<<<HEAD or ======= or >>>>>>>branch-name
|
||||
#
|
||||
# this is intended to be used in your CI tests
|
||||
|
||||
@@ -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" }
|
||||
|
||||
|
||||
+1
-1
@@ -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 )/.."
|
||||
|
||||
Reference in New Issue
Block a user