From 48067735fcb1b0e3e403d0a810292a3420466447 Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Mon, 23 May 2022 16:54:46 +0100 Subject: [PATCH] Update golint to revive Resolves the following message in golangci output: > The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive. Additionally, fix a minor linting issue discovered by revive. Signed-off-by: Justin Chadwell --- .golangci.yml | 4 ++-- build/build.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 7598d98c..583eff92 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -18,7 +18,7 @@ linters: - misspell - unused - varcheck - - golint + - revive - staticcheck - typecheck - structcheck @@ -36,5 +36,5 @@ linters-settings: issues: exclude-rules: - linters: - - golint + - revive text: "stutters" diff --git a/build/build.go b/build/build.go index ec0d20e9..ab241af9 100644 --- a/build/build.go +++ b/build/build.go @@ -585,7 +585,7 @@ func toSolveOpt(ctx context.Context, di DriverInfo, multiDriver bool, opt Option so.FrontendAttrs["force-network-mode"] = opt.NetworkMode case "", "default": default: - return nil, nil, errors.Errorf("network mode %q not supported by buildkit. You can define a custom network for your builder using the network driver-opt in buildx create.", opt.NetworkMode) + return nil, nil, errors.Errorf("network mode %q not supported by buildkit - you can define a custom network for your builder using the network driver-opt in buildx create", opt.NetworkMode) } // setup extrahosts