Merge pull request #1143 from jedevc/revive-linter

Update golint to revive
This commit is contained in:
CrazyMax 2022-05-24 09:15:00 +02:00 committed by GitHub
commit 66a764f9c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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