From 947e972dd2dc2807ce3e521057a328b3344b56f2 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Thu, 9 Sep 2021 11:32:05 -0400 Subject: [PATCH] docs: update install from source GOPATH is not longer necessary as of Go1.11. No additional tools are required, just Go. --- website/content/docs/install/index.mdx | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/website/content/docs/install/index.mdx b/website/content/docs/install/index.mdx index 1ba04c683c..95ac37996e 100644 --- a/website/content/docs/install/index.mdx +++ b/website/content/docs/install/index.mdx @@ -38,24 +38,15 @@ command-line, make sure to place it somewhere on your `PATH`. ## Compiling from Source To compile from source, you will need [Go](https://golang.org) installed and -configured properly (including a `GOPATH` environment variable set), as well as a copy of [`git`](https://www.git-scm.com/) in your `PATH`. -1. Clone the Consul repository from GitHub into your `GOPATH`: +1. Clone the Consul repository from GitHub: ```shell - $ mkdir -p $GOPATH/src/github.com/hashicorp && cd !$ $ git clone https://github.com/hashicorp/consul.git $ cd consul ``` -1. Bootstrap the project. This will download and compile libraries and tools - needed to compile Consul: - - ```shell - $ make tools - ``` - 1. Build Consul for your target system. The binary will be placed in `./bin` (relative to the git checkout). @@ -82,13 +73,13 @@ $ make dev Specify your target system by setting the following environment variables before building: -- `XC_OS`: Target operating system. Valid values include: +- `GOOS`: Target operating system. Valid values include: `linux`, `darwin`, `windows`, `solaris`, `freebsd`. -- `XC_ARCH`: Target architecture. Valid values include: +- `GOARCH`: Target architecture. Valid values include: `386`, `amd64`, `arm`, `arm64` ```shell-session -$ export XC_OS=linux XC_ARCH=amd64 +$ export GOOS=linux GOARCH=amd64 $ make dev ```