mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-30 17:35:44 +08:00
Merge pull request #1143 from jedevc/revive-linter
Update golint to revive
This commit is contained in:
commit
66a764f9c1
@ -18,7 +18,7 @@ linters:
|
|||||||
- misspell
|
- misspell
|
||||||
- unused
|
- unused
|
||||||
- varcheck
|
- varcheck
|
||||||
- golint
|
- revive
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- typecheck
|
- typecheck
|
||||||
- structcheck
|
- structcheck
|
||||||
@ -36,5 +36,5 @@ linters-settings:
|
|||||||
issues:
|
issues:
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
- linters:
|
- linters:
|
||||||
- golint
|
- revive
|
||||||
text: "stutters"
|
text: "stutters"
|
||||||
|
@ -585,7 +585,7 @@ func toSolveOpt(ctx context.Context, di DriverInfo, multiDriver bool, opt Option
|
|||||||
so.FrontendAttrs["force-network-mode"] = opt.NetworkMode
|
so.FrontendAttrs["force-network-mode"] = opt.NetworkMode
|
||||||
case "", "default":
|
case "", "default":
|
||||||
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
|
// setup extrahosts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user