From 38f335dbe1426cab576123988dbd7a50c50f5461 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Fri, 11 Jan 2019 19:23:27 +0100 Subject: [PATCH] chore: update golangci-lint. (#757) --- .travis.yml | 2 +- acme/api/internal/secure/jws.go | 2 +- acme/api/order_test.go | 2 +- challenge/resolver/solver_manager_test.go | 2 +- providers/dns/auroradns/auroradns.go | 2 +- providers/dns/cloudflare/cloudflare.go | 2 +- providers/dns/dnspod/dnspod.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index a0991072..9012dcba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,7 @@ before_install: - go get -u github.com/letsencrypt/pebble/... # Install linters and misspell - - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.12.2 + - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.12.5 - golangci-lint --version install: diff --git a/acme/api/internal/secure/jws.go b/acme/api/internal/secure/jws.go index 7645b6e9..6f26c4ea 100644 --- a/acme/api/internal/secure/jws.go +++ b/acme/api/internal/secure/jws.go @@ -10,7 +10,7 @@ import ( "fmt" "github.com/xenolf/lego/acme/api/internal/nonces" - "gopkg.in/square/go-jose.v2" + jose "gopkg.in/square/go-jose.v2" ) // JWS Represents a JWS. diff --git a/acme/api/order_test.go b/acme/api/order_test.go index 7115d31b..31f92dc5 100644 --- a/acme/api/order_test.go +++ b/acme/api/order_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/require" "github.com/xenolf/lego/acme" "github.com/xenolf/lego/platform/tester" - "gopkg.in/square/go-jose.v2" + jose "gopkg.in/square/go-jose.v2" ) func TestOrderService_New(t *testing.T) { diff --git a/challenge/resolver/solver_manager_test.go b/challenge/resolver/solver_manager_test.go index 2f47715b..b349c781 100644 --- a/challenge/resolver/solver_manager_test.go +++ b/challenge/resolver/solver_manager_test.go @@ -14,7 +14,7 @@ import ( "github.com/xenolf/lego/acme" "github.com/xenolf/lego/acme/api" "github.com/xenolf/lego/platform/tester" - "gopkg.in/square/go-jose.v2" + jose "gopkg.in/square/go-jose.v2" ) func TestByType(t *testing.T) { diff --git a/providers/dns/auroradns/auroradns.go b/providers/dns/auroradns/auroradns.go index 56dff6d0..3b16b658 100644 --- a/providers/dns/auroradns/auroradns.go +++ b/providers/dns/auroradns/auroradns.go @@ -7,7 +7,7 @@ import ( "sync" "time" - "github.com/ldez/go-auroradns" + auroradns "github.com/ldez/go-auroradns" "github.com/xenolf/lego/challenge/dns01" "github.com/xenolf/lego/platform/config/env" ) diff --git a/providers/dns/cloudflare/cloudflare.go b/providers/dns/cloudflare/cloudflare.go index c530326a..97dc5356 100644 --- a/providers/dns/cloudflare/cloudflare.go +++ b/providers/dns/cloudflare/cloudflare.go @@ -7,7 +7,7 @@ import ( "net/http" "time" - "github.com/cloudflare/cloudflare-go" + cloudflare "github.com/cloudflare/cloudflare-go" "github.com/xenolf/lego/challenge/dns01" "github.com/xenolf/lego/log" "github.com/xenolf/lego/platform/config/env" diff --git a/providers/dns/dnspod/dnspod.go b/providers/dns/dnspod/dnspod.go index fb8afcbd..06cb566f 100644 --- a/providers/dns/dnspod/dnspod.go +++ b/providers/dns/dnspod/dnspod.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/decker502/dnspod-go" + dnspod "github.com/decker502/dnspod-go" "github.com/xenolf/lego/challenge/dns01" "github.com/xenolf/lego/platform/config/env" )