Merge pull request #5650 from Roasbeef/go-1-17

build: upgrade all CI+build infra to Go 1.17
This commit is contained in:
Olaoluwa Osuntokun
2021-09-30 19:12:29 -07:00
committed by GitHub
201 changed files with 217 additions and 31 deletions

View File

@@ -1,6 +1,6 @@
#### Pull Request Checklist
- [ ] All changes are Go version 1.15 compliant
- [ ] All changes are Go version 1.16 compliant
- [ ] Your PR passes all CI checks. If a check cannot be passed for a justifiable reason, that reason must be stated in the commit message and PR description.
- [ ] If this is your first time contributing, we recommend you read the [Code Contribution Guidelines](https://github.com/lightningnetwork/lnd/blob/master/docs/code_contribution_guidelines.md)
- [ ] The code being submitted is commented according to [Code Documentation and Commenting](https://github.com/lightningnetwork/lnd/blob/master/docs/code_contribution_guidelines.md#CodeDocumentation)

View File

@@ -24,7 +24,7 @@ env:
# /dev.Dockerfile
# /make/builder.Dockerfile
# /.github/workflows/release.yml
GO_VERSION: 1.16.3
GO_VERSION: 1.17.1
jobs:
########################

View File

@@ -16,7 +16,7 @@ env:
# /dev.Dockerfile
# /make/builder.Dockerfile
# /.github/workflows/main.yml
GO_VERSION: 1.16.3
GO_VERSION: 1.17.1
jobs:
main:

View File

@@ -21,7 +21,7 @@ go:
# /make/builder.Dockerfile
# /.github/workflows/main.yml
# /.github/workflows/release.yml
- 1.16.3
- "1.17.x"
env:
global:

View File

@@ -4,7 +4,7 @@
# /make/builder.Dockerfile
# /.github/workflows/main.yml
# /.github/workflows/release.yml
FROM golang:1.16.3-alpine as builder
FROM golang:1.17.1-alpine as builder
# Force Go to use the cgo based DNS resolver. This is required to ensure DNS
# queries required to connect to linked containers succeed.

View File

@@ -1,3 +1,4 @@
//go:build rpctest
// +build rpctest
package aezeed

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package build

View File

@@ -1,3 +1,4 @@
//go:build !dev
// +build !dev
package build

View File

@@ -1,3 +1,4 @@
//go:build !stdlog && !nolog
// +build !stdlog,!nolog
package build

View File

@@ -1,3 +1,4 @@
//go:build nolog
// +build nolog
package build

View File

@@ -1,3 +1,4 @@
//go:build stdlog
// +build stdlog
package build

View File

@@ -1,3 +1,4 @@
//go:build dev && critical
// +build dev,critical
package build

View File

@@ -1,3 +1,4 @@
//go:build dev && debug
// +build dev,debug
package build

View File

@@ -1,3 +1,4 @@
//go:build !info && !debug && !trace && !warn && !error && !critical && !off
// +build !info,!debug,!trace,!warn,!error,!critical,!off
package build

View File

@@ -1,3 +1,4 @@
//go:build dev && error
// +build dev,error
package build

View File

@@ -1,3 +1,4 @@
//go:build dev && info
// +build dev,info
package build

View File

@@ -1,3 +1,4 @@
//go:build dev && off
// +build dev,off
package build

View File

@@ -1,3 +1,4 @@
//go:build dev && trace
// +build dev,trace
package build

View File

@@ -1,3 +1,4 @@
//go:build dev && warn
// +build dev,warn
package build

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package bitcoindnotify

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package bitcoindnotify

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package btcdnotify

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package btcdnotify

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package chainntnfs

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package neutrinonotify

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package bitcoind_test

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package btcd_test

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package neutrino_test

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package chainntnfstest

View File

@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package chainntnfs

View File

@@ -1,3 +1,4 @@
//go:build kvdb_etcd
// +build kvdb_etcd
package cluster

View File

@@ -1,3 +1,4 @@
//go:build kvdb_etcd
// +build kvdb_etcd
package cluster

View File

@@ -1,3 +1,4 @@
//go:build kvdb_etcd
// +build kvdb_etcd
package cluster

View File

@@ -1,3 +1,4 @@
//go:build autopilotrpc
// +build autopilotrpc
package main

View File

@@ -1,3 +1,4 @@
//go:build !autopilotrpc
// +build !autopilotrpc
package main

View File

@@ -1,3 +1,4 @@
//go:build invoicesrpc
// +build invoicesrpc
package main

View File

@@ -1,3 +1,4 @@
//go:build !invoicesrpc
// +build !invoicesrpc
package main

View File

@@ -1,3 +1,4 @@
//go:build walletrpc
// +build walletrpc
package main

View File

@@ -1,3 +1,4 @@
//go:build !walletrpc
// +build !walletrpc
package main

View File

@@ -1,3 +1,4 @@
//go:build watchtowerrpc
// +build watchtowerrpc
package main

View File

@@ -1,3 +1,4 @@
//go:build !watchtowerrpc
// +build !watchtowerrpc
package main

View File

@@ -4,7 +4,7 @@
# /make/builder.Dockerfile
# /.github/workflows/main.yml
# /.github/workflows/release.yml
FROM golang:1.16.3-alpine as builder
FROM golang:1.17.1-alpine as builder
LABEL maintainer="Olaoluwa Osuntokun <laolu@lightning.engineering>"

View File

@@ -1,4 +1,4 @@
FROM golang:1.16.3-alpine as builder
FROM golang:1.17.1-alpine as builder
LABEL maintainer="Olaoluwa Osuntokun <laolu@lightning.engineering>"

View File

@@ -1,4 +1,4 @@
FROM golang:1.16.3-alpine as builder
FROM golang:1.17.1-alpine as builder
LABEL maintainer="Olaoluwa Osuntokun <laolu@lightning.engineering>"

View File

@@ -93,46 +93,46 @@ version if there are database migrations present.
* **Go:** `lnd` is written in Go. To install, run one of the following commands:
**Note**: The minimum version of Go supported is Go 1.15. We recommend that
**Note**: The minimum version of Go supported is Go 1.16. We recommend that
users use the latest version of Go, which at the time of writing is
[`1.16`](https://blog.golang.org/go1.16).
[`1.17.1`](https://blog.golang.org/go1.17.1).
On Linux:
(x86-64)
```
wget https://dl.google.com/go/go1.16.linux-amd64.tar.gz
sha256sum go1.16.linux-amd64.tar.gz | awk -F " " '{ print $1 }'
wget https://dl.google.com/go/go1.17.1.linux-amd64.tar.gz
sha256sum go1.17.1.linux-amd64.tar.gz | awk -F " " '{ print $1 }'
```
The final output of the command above should be
`013a489ebb3e24ef3d915abe5b94c3286c070dfe0818d5bca8108f1d6e8440d2`. If it
`dab7d9c34361dc21ec237d584590d72500652e7c909bf082758fb63064fca0ef`. 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.16.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
```
(ARMv6)
```
wget https://dl.google.com/go/go1.16.linux-armv6l.tar.gz
sha256sum go1.16.linux-armv6l.tar.gz | awk -F " " '{ print $1 }'
wget https://dl.google.com/go/go1.17.1.linux-armv6l.tar.gz
sha256sum go1.17.1.linux-armv6l.tar.gz | awk -F " " '{ print $1 }'
```
The final output of the command above should be
`d1d9404b1dbd77afa2bdc70934e10fbfcf7d785c372efc29462bb7d83d0a32fd`. If it
`ed3e4dbc9b80353f6482c441d65b51808290e94ff1d15d56da5f4a7be7353758`. 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.16.linux-armv6l.tar.gz
tar -C /usr/local -xzf go1.17.1.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
```
On Mac OS X:
```
brew install go@1.16
brew install go@1.17.1
```
On FreeBSD:

View File

@@ -198,6 +198,10 @@ you.
* [Fix Travis itest parallelism](https://github.com/lightningnetwork/lnd/pull/5734)
* [All CI, containers, and automated release artifact building now all use Go
1.17.1](https://github.com/lightningnetwork/lnd/pull/5650). All build tags have
been updated accordingly to comply with the new Go 1.17.1 requirements.
## Documentation
* [Outdated warning about unsupported pruning was replaced with clarification that LND **does**

View File

@@ -1,3 +1,4 @@
//go:build !rpctest
// +build !rpctest
package funding

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package wtwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package wtwirefuzz

View File

@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package wtwirefuzz

Some files were not shown because too many files have changed in this diff Show More