multi: add golang 1.17 compatible build tags

With go 1.17 a change to the build flags was implemented:
https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md

The formatter now automatically adds the forward-compatible build tag
format and the linter checks for them, so we need to include them in our
code.
This commit is contained in:
Oliver Gugger 2021-08-23 10:35:48 +02:00 committed by Olaoluwa Osuntokun
parent d973cf1060
commit 0b4e03f5fc
No known key found for this signature in database
GPG Key ID: 3BBD59E99B280306
187 changed files with 189 additions and 4 deletions

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

@ -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

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

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
//go:build !windows && !solaris && !netbsd && !openbsd && !js
// +build !windows,!solaris,!netbsd,!openbsd,!js
package healthcheck

View File

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

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