From 04f9a4faa4b82af6bfe0da486ac95a1a84cbd037 Mon Sep 17 00:00:00 2001
From: AbelLykens <47113175+AbelLykens@users.noreply.github.com>
Date: Fri, 21 Jun 2024 19:27:52 +0200
Subject: [PATCH] [docs] Update go instructions
Building current lnd `0.18` fails with older go (`1.19.7`).
* Updated go download path to 1.22.4
* Updated hashes
* Added `rm -rf` instructions as per [go.dev instructions](https://go.dev/doc/install)
---
docs/INSTALL.md | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/docs/INSTALL.md b/docs/INSTALL.md
index d6308c9c37..30afa7bddd 100644
--- a/docs/INSTALL.md
+++ b/docs/INSTALL.md
@@ -100,16 +100,16 @@ the following commands for your OS:
Linux (x86-64)
```
- wget https://dl.google.com/go/go1.19.7.linux-amd64.tar.gz
- sha256sum go1.19.7.linux-amd64.tar.gz | awk -F " " '{ print $1 }'
+ wget https://dl.google.com/go/go1.22.4.linux-amd64.tar.gz
+ sha256sum go1.22.4.linux-amd64.tar.gz | awk -F " " '{ print $1 }'
```
The final output of the command above should be
- `7a75720c9b066ae1750f6bcc7052aba70fa3813f4223199ee2a2315fd3eb533d`. If it
+ `ba79d4526102575196273416239cca418a651e049c2b099f3159db85e7bade7d`. If it
isn't, then the target REPO HAS BEEN MODIFIED, and you shouldn't install
this version of Go. If it matches, then proceed to install Go:
```
- sudo tar -C /usr/local -xzf go1.19.7.linux-amd64.tar.gz
+ sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
```
@@ -118,16 +118,16 @@ the following commands for your OS:
Linux (ARMv6)
```
- wget https://dl.google.com/go/go1.19.7.linux-armv6l.tar.gz
- sha256sum go1.19.7.linux-armv6l.tar.gz | awk -F " " '{ print $1 }'
+ wget https://dl.google.com/go/go1.22.4.linux-armv6l.tar.gz
+ sha256sum go1.22.4.linux-armv6l.tar.gz | awk -F " " '{ print $1 }'
```
The final output of the command above should be
- `93b1f621ddfc2c2b4e383e185fa7801e80f8b546918cb96afea2723677928312`. If it
+ `e2b143fbacbc9cbd448e9ef41ac3981f0488ce849af1cf37e2341d09670661de`. If it
isn't, then the target REPO HAS BEEN MODIFIED, and you shouldn't install
this version of Go. If it matches, then proceed to install Go:
```
- tar -C /usr/local -xzf go1.19.7.linux-armv6l.tar.gz
+ sudo rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.4.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
```