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:
1 parent
d973cf1060
commit
0b4e03f5fc
187 files changed
+189
-4
No files matched your search
+2
-2
@@ -1,5 +1,5 @@
|
||||
// +build bitcoind
|
||||
// +build !notxindex
|
||||
//go:build bitcoind && !notxindex
|
||||
// +build bitcoind,!notxindex
|
||||
|
||||
package lntest
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build bitcoind
|
||||
// +build bitcoind
|
||||
|
||||
package lntest
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// +build bitcoind
|
||||
// +build notxindex
|
||||
//go:build bitcoind && notxindex
|
||||
// +build bitcoind,notxindex
|
||||
|
||||
package lntest
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !bitcoind && !neutrino
|
||||
// +build !bitcoind,!neutrino
|
||||
|
||||
package lntest
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build kvdb_etcd
|
||||
// +build kvdb_etcd
|
||||
|
||||
package itest
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build rpctest
|
||||
// +build rpctest
|
||||
|
||||
package itest
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !kvdb_etcd
|
||||
// +build !kvdb_etcd
|
||||
|
||||
package itest
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !rpctest
|
||||
// +build !rpctest
|
||||
|
||||
package itest
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build rpctest
|
||||
// +build rpctest
|
||||
|
||||
package itest
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build neutrino
|
||||
// +build neutrino
|
||||
|
||||
package lntest
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !darwin && !kvdb_etcd && !kvdb_postgres
|
||||
// +build !darwin,!kvdb_etcd,!kvdb_postgres
|
||||
|
||||
package lntest
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build darwin && !kvdb_etcd && !kvdb_postgres
|
||||
// +build darwin,!kvdb_etcd,!kvdb_postgres
|
||||
|
||||
package lntest
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build kvdb_etcd || kvdb_postgres
|
||||
// +build kvdb_etcd kvdb_postgres
|
||||
|
||||
package lntest
|
||||
|
||||
Reference in new issue
Block a user