From e038491f8acf1cb07c50eed286d6c45b5f32253d Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sat, 15 Oct 2016 15:35:26 -0700 Subject: [PATCH] lnd: fix build error for go 1.6.3, use experimental context import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes a build error for go 1.6.3. Before go 1.7, the context package was under the experimental go packages, therefore to maintain compatibility across our currently supported versions, we must use the ‘/x/net’ import path. --- lnd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnd.go b/lnd.go index 5f79dac7..2d032b7a 100644 --- a/lnd.go +++ b/lnd.go @@ -1,7 +1,6 @@ package main import ( - "context" "encoding/hex" "fmt" "io/ioutil" @@ -13,6 +12,8 @@ import ( "runtime" "strconv" + "golang.org/x/net/context" + "google.golang.org/grpc" proxy "github.com/grpc-ecosystem/grpc-gateway/runtime"