mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
0b4e03f5fc
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.
15 lines
494 B
Go
15 lines
494 B
Go
//go:build tools
|
|
// +build tools
|
|
|
|
package lnd
|
|
|
|
import (
|
|
// This is a workaround to make sure go mod keeps around the btcd
|
|
// dependencies in the go.sum file that we only use during integration
|
|
// tests and only for certain operating systems. For example, this
|
|
// specific import makes sure the indirect dependency
|
|
// github.com/btcsuite/winsvc is kept in the go.sum file. Because of the
|
|
// build tag, this dependency never ends up in the final lnd binary.
|
|
_ "github.com/btcsuite/btcd"
|
|
)
|