Merge pull request #6340 from Roasbeef/go-1-18
build: update to Go 1.18
This commit is contained in:
12 files changed
+19
-18
No files matched your search
@@ -24,7 +24,7 @@ env:
|
|||||||
# /dev.Dockerfile
|
# /dev.Dockerfile
|
||||||
# /make/builder.Dockerfile
|
# /make/builder.Dockerfile
|
||||||
# /.github/workflows/release.yml
|
# /.github/workflows/release.yml
|
||||||
GO_VERSION: 1.17.3
|
GO_VERSION: 1.18
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
########################
|
########################
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ env:
|
|||||||
# /dev.Dockerfile
|
# /dev.Dockerfile
|
||||||
# /make/builder.Dockerfile
|
# /make/builder.Dockerfile
|
||||||
# /.github/workflows/main.yml
|
# /.github/workflows/main.yml
|
||||||
GO_VERSION: 1.17.3
|
GO_VERSION: 1.18
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ go:
|
|||||||
# /make/builder.Dockerfile
|
# /make/builder.Dockerfile
|
||||||
# /.github/workflows/main.yml
|
# /.github/workflows/main.yml
|
||||||
# /.github/workflows/release.yml
|
# /.github/workflows/release.yml
|
||||||
- "1.17.x"
|
- "1.18.x"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
# /make/builder.Dockerfile
|
# /make/builder.Dockerfile
|
||||||
# /.github/workflows/main.yml
|
# /.github/workflows/main.yml
|
||||||
# /.github/workflows/release.yml
|
# /.github/workflows/release.yml
|
||||||
FROM golang:1.17.3-alpine as builder
|
FROM golang:1.18-alpine as builder
|
||||||
|
|
||||||
# Force Go to use the cgo based DNS resolver. This is required to ensure DNS
|
# Force Go to use the cgo based DNS resolver. This is required to ensure DNS
|
||||||
# queries required to connect to linked containers succeed.
|
# queries required to connect to linked containers succeed.
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ func TestHistoricalConfDetailsTxIndex(t *testing.T) {
|
|||||||
switch txStatus {
|
switch txStatus {
|
||||||
case chainntnfs.TxFoundMempool:
|
case chainntnfs.TxFoundMempool:
|
||||||
default:
|
default:
|
||||||
t.Fatal("should have found the transaction within the "+
|
t.Fatalf("should have found the transaction within the "+
|
||||||
"mempool, but did not: %v", txStatus)
|
"mempool, but did not: %v", txStatus)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2009,7 +2009,7 @@ func TestDeDuplicatedAnnouncements(t *testing.T) {
|
|||||||
// indexes as due to the randomized order of map iteration they may be
|
// indexes as due to the randomized order of map iteration they may be
|
||||||
// in either place.
|
// in either place.
|
||||||
if !reflect.DeepEqual(batch[2].msg, na) && !reflect.DeepEqual(batch[3].msg, na) {
|
if !reflect.DeepEqual(batch[2].msg, na) && !reflect.DeepEqual(batch[3].msg, na) {
|
||||||
t.Fatal("first node announcement not in last part of batch: "+
|
t.Fatalf("first node announcement not in last part of batch: "+
|
||||||
"got %v, expected %v", batch[2].msg,
|
"got %v, expected %v", batch[2].msg,
|
||||||
na)
|
na)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2125,7 +2125,7 @@ func TestGossipSyncerSyncTransitions(t *testing.T) {
|
|||||||
select {
|
select {
|
||||||
case msgs := <-msgChan:
|
case msgs := <-msgChan:
|
||||||
if len(msgs) != 1 {
|
if len(msgs) != 1 {
|
||||||
t.Fatal("expected to send a single message at "+
|
t.Fatalf("expected to send a single message at "+
|
||||||
"a time, got %d", len(msgs))
|
"a time, got %d", len(msgs))
|
||||||
}
|
}
|
||||||
msgSent = msgs[0]
|
msgSent = msgs[0]
|
||||||
|
|||||||
+8
-8
@@ -93,23 +93,23 @@ following build dependencies are required:
|
|||||||
|
|
||||||
### Installing Go
|
### Installing Go
|
||||||
|
|
||||||
`lnd` is written in Go, with a minimum version of 1.16. To install, run one of
|
`lnd` is written in Go, with a minimum version of 1.18. To install, run one of
|
||||||
the following commands for your OS:
|
the following commands for your OS:
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Linux (x86-64)</summary>
|
<summary>Linux (x86-64)</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
wget https://dl.google.com/go/go1.17.1.linux-amd64.tar.gz
|
wget https://dl.google.com/go/go1.18.linux-amd64.tar.gz
|
||||||
sha256sum go1.17.1.linux-amd64.tar.gz | awk -F " " '{ print $1 }'
|
sha256sum go1.18.linux-amd64.tar.gz | awk -F " " '{ print $1 }'
|
||||||
```
|
```
|
||||||
|
|
||||||
The final output of the command above should be
|
The final output of the command above should be
|
||||||
`dab7d9c34361dc21ec237d584590d72500652e7c909bf082758fb63064fca0ef`. If it
|
`e85278e98f57cdb150fe8409e6e5df5343ecb13cebf03a5d5ff12bd55a80264f`. If it
|
||||||
isn't, then the target REPO HAS BEEN MODIFIED, and you shouldn't install
|
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:
|
this version of Go. If it matches, then proceed to install Go:
|
||||||
```
|
```
|
||||||
sudo tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
|
sudo tar -C /usr/local -xzf go1.18.linux-amd64.tar.gz
|
||||||
export PATH=$PATH:/usr/local/go/bin
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
@@ -118,12 +118,12 @@ the following commands for your OS:
|
|||||||
<summary>Linux (ARMv6)</summary>
|
<summary>Linux (ARMv6)</summary>
|
||||||
|
|
||||||
```
|
```
|
||||||
wget https://dl.google.com/go/go1.17.1.linux-armv6l.tar.gz
|
wget https://dl.google.com/go/go1.18.linux-armv6l.tar.gz
|
||||||
sha256sum go1.17.1.linux-armv6l.tar.gz | awk -F " " '{ print $1 }'
|
sha256sum go1.18.linux-armv6l.tar.gz | awk -F " " '{ print $1 }'
|
||||||
```
|
```
|
||||||
|
|
||||||
The final output of the command above should be
|
The final output of the command above should be
|
||||||
`ed3e4dbc9b80353f6482c441d65b51808290e94ff1d15d56da5f4a7be7353758`. If it
|
`a80fa43d1f4575fb030adbfbaa94acd860c6847820764eecb06c63b7c103612b`. If it
|
||||||
isn't, then the target REPO HAS BEEN MODIFIED, and you shouldn't install
|
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:
|
this version of Go. If it matches, then proceed to install Go:
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ then watch it on chain. Taproot script spends are also supported through the
|
|||||||
The `apple` task uses `gomobile` to build an `XCFramework` that can be used to
|
The `apple` task uses `gomobile` to build an `XCFramework` that can be used to
|
||||||
embed lnd to both iOS and macOS apps.
|
embed lnd to both iOS and macOS apps.
|
||||||
|
|
||||||
|
* [The CI and build infrastructure for the project has transitioned to using Go 1.18](https://github.com/lightningnetwork/lnd/pull/6340).
|
||||||
|
|
||||||
## RPC Server
|
## RPC Server
|
||||||
|
|
||||||
|
|||||||
@@ -490,7 +490,7 @@ func TestCircuitMapPersistence(t *testing.T) {
|
|||||||
// Removing already-removed circuit should return an error.
|
// Removing already-removed circuit should return an error.
|
||||||
err = circuitMap.DeleteCircuits(circuit1.Incoming)
|
err = circuitMap.DeleteCircuits(circuit1.Incoming)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal("Unexpected failure when deleting already "+
|
t.Fatalf("Unexpected failure when deleting already "+
|
||||||
"deleted circuit: %v", err)
|
"deleted circuit: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ func testQueryRoutes(t *testing.T, useMissionControl bool, useMsat bool,
|
|||||||
route.Vertex, error) {
|
route.Vertex, error) {
|
||||||
|
|
||||||
if chanID != 555 {
|
if chanID != 555 {
|
||||||
t.Fatal("expected endpoints to be fetched for "+
|
t.Fatalf("expected endpoints to be fetched for "+
|
||||||
"channel 555, but got %v instead",
|
"channel 555, but got %v instead",
|
||||||
chanID)
|
chanID)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# /dev.Dockerfile
|
# /dev.Dockerfile
|
||||||
# /.github/workflows/main.yml
|
# /.github/workflows/main.yml
|
||||||
# /.github/workflows/release.yml
|
# /.github/workflows/release.yml
|
||||||
FROM golang:1.17.3-buster
|
FROM golang:1.18-buster
|
||||||
|
|
||||||
MAINTAINER Olaoluwa Osuntokun <laolu@lightning.engineering>
|
MAINTAINER Olaoluwa Osuntokun <laolu@lightning.engineering>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user