mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
Refer to a consistent minimum Go version (#1201)
* Refer to a consistent minimum Go version * Refer to a consistent minimum Go version * Change Go version to v1.12
This commit is contained in:
committed by
Aaron Schlesinger
parent
f969033075
commit
fd1cd2e0b1
@@ -7,16 +7,16 @@ weight: 3
|
||||
|
||||
The proxy is written in idiomatic Go and uses standard tools. If you know Go, you'll be able to read the code and run the server.
|
||||
|
||||
Athens uses [Go Modules](https://golang.org/cmd/go/#hdr-Modules__module_versions__and_more) for dependency management. You will need Go [v1.11](https://golang.org/dl) or later to get started on Athens.
|
||||
Athens uses [Go Modules](https://golang.org/cmd/go/#hdr-Modules__module_versions__and_more) for dependency management. You will need [Go v1.12+](https://golang.org/dl) to get started on Athens.
|
||||
|
||||
See our [Contributing Guide](https://github.com/gomods/athens/blob/master/CONTRIBUTING.md) for tips on how to submit a pull request when you are ready.
|
||||
|
||||
### Go version
|
||||
Athens is developed on Go1.11+.
|
||||
Athens is developed on Go v1.12+.
|
||||
|
||||
To point Athens to a different version of Go set the following environment variable
|
||||
```
|
||||
GO_BINARY_PATH=go1.11.X
|
||||
GO_BINARY_PATH=go1.12.X
|
||||
# or whichever binary you want to use with athens
|
||||
```
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ Finally, we're purposefully building this project - and working with the toolcha
|
||||
|
||||
### Does Athens integrate with the go toolchain?
|
||||
|
||||
Athens is currently supported by the Go 1.11 toolchain via the [download protocol](/intro/protocol/).
|
||||
Athens is currently supported by the [Go v1.12+](https://golang.org/dl) toolchain via the [download protocol](/intro/protocol/).
|
||||
|
||||
For the TL;DR of the protocol, it's a REST API that lets the go toolchain (i.e. go get) see lists of versions and fetch source code for a specific version.
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ CONTAINER ID IMAGE COMMAND PORTS
|
||||
f0429b81a4f9 gomods/athens:latest "/bin/app" 0.0.0.0:3000->3000/tcp athens-proxy
|
||||
```
|
||||
|
||||
Now, we can use Athens from any development machine that has Go 1.11 installed. To verify this, try the following example:
|
||||
Now, we can use Athens from any development machine that has Go v1.12+ installed. To verify this, try the following example:
|
||||
|
||||
**Bash**
|
||||
```console
|
||||
|
||||
@@ -8,7 +8,7 @@ From a very high-level view, there are 3 major components of the system.
|
||||
|
||||
### Client
|
||||
|
||||
The client is a user, powered by go binary with module support. At the moment of writing this document, it is `go1.11`
|
||||
The client is a user, powered by go binary with module support. At the moment of writing this document, it is [Go v1.12+](https://golang.org/dl).
|
||||
|
||||
### VCS
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ weight: 5
|
||||
|
||||
### 客户端
|
||||
|
||||
客户端必须是一个支持 module 的 go.编写该文档时,它是 `go1.11`
|
||||
客户端必须是一个支持 module 的 go.编写该文档时,它是 [Go v1.12+](https://golang.org/dl).
|
||||
|
||||
### VCS
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ menu: shortcuts
|
||||
|
||||
To quickly see Athens in action, follow these steps:
|
||||
|
||||
First, make sure you have [Go 1.12 or later installed](https://gophersource.com/setup/),
|
||||
First, make sure you have [Go v1.12+ installed](https://gophersource.com/setup/),
|
||||
that GOPATH/bin is on your path, and that you have enabled the [Go
|
||||
Modules](https://github.com/golang/go/wiki/Modules) feature.
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@ description: Understanding the Athens proxy and Go Modules
|
||||
menu: shortcuts
|
||||
---
|
||||
|
||||
First, make sure you have [Go 1.11 installed](https://gophersource.com/setup/) and that GOPATH/bin is on your path.
|
||||
First, make sure you have [Go v1.12+ installed](https://gophersource.com/setup/) and that GOPATH/bin is on your path.
|
||||
|
||||
## Without the Athens proxy
|
||||
Let's review what everything looks like in Go 1.11 without the Athens proxy in the picture:
|
||||
Let's review what everything looks like in Go without the Athens proxy in the picture:
|
||||
|
||||
**Bash**
|
||||
```console
|
||||
|
||||
Reference in New Issue
Block a user