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 authored and GitHub committed 2021-09-30 19:12:29 -07:00
commit dd7bfa0c4a
201 files changed
+217 -31

No files matched your search

+1 -1
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)
+1 -1
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:
########################
+1 -1
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:
+1 -1
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:
+1 -1
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.
+1
View File
@@ -1,3 +1,4 @@
//go:build rpctest
// +build rpctest
package aezeed
+1
View File
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build !dev
// +build !dev
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build !stdlog && !nolog
// +build !stdlog,!nolog
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build nolog
// +build nolog
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build stdlog
// +build stdlog
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && critical
// +build dev,critical
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && debug
// +build dev,debug
package build
+1
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
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && error
// +build dev,error
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && info
// +build dev,info
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && off
// +build dev,off
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && trace
// +build dev,trace
package build
+1
View File
@@ -1,3 +1,4 @@
//go:build dev && warn
// +build dev,warn
package build
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package bitcoindnotify
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package bitcoindnotify
+1
View File
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package btcdnotify
+1
View File
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package btcdnotify
+1
View File
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package chainntnfs
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package neutrinonotify
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package bitcoind_test
+1
View File
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package btcd_test
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package neutrino_test
+1
View File
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package chainntnfstest
+1
View File
@@ -1,3 +1,4 @@
//go:build dev
// +build dev
package chainntnfs
+1
View File
@@ -1,3 +1,4 @@
//go:build kvdb_etcd
// +build kvdb_etcd
package cluster
+1
View File
@@ -1,3 +1,4 @@
//go:build kvdb_etcd
// +build kvdb_etcd
package cluster
+1
View File
@@ -1,3 +1,4 @@
//go:build kvdb_etcd
// +build kvdb_etcd
package cluster
+1
View File
@@ -1,3 +1,4 @@
//go:build autopilotrpc
// +build autopilotrpc
package main
+1
View File
@@ -1,3 +1,4 @@
//go:build !autopilotrpc
// +build !autopilotrpc
package main
+1
View File
@@ -1,3 +1,4 @@
//go:build invoicesrpc
// +build invoicesrpc
package main
+1
View File
@@ -1,3 +1,4 @@
//go:build !invoicesrpc
// +build !invoicesrpc
package main
+1
View File
@@ -1,3 +1,4 @@
//go:build walletrpc
// +build walletrpc
package main
+1
View File
@@ -1,3 +1,4 @@
//go:build !walletrpc
// +build !walletrpc
package main
+1
View File
@@ -1,3 +1,4 @@
//go:build watchtowerrpc
// +build watchtowerrpc
package main
+1
View File
@@ -1,3 +1,4 @@
//go:build !watchtowerrpc
// +build !watchtowerrpc
package main
+1 -1
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>"
+1 -1
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>"
+1 -1
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>"
+11 -11
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:
@@ -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**
+1
View File
@@ -1,3 +1,4 @@
//go:build !rpctest
// +build !rpctest
package funding
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package brontidefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package lnwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package wtwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package wtwirefuzz
+1
View File
@@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package wtwirefuzz
Loaded 100 of 201 files, more files were not shown because too many files have changed in this diff. Show more