lint: enable importas rules from buildkit

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2024-11-19 18:29:04 -08:00
parent e7a53fb829
commit 58fd190c31
No known key found for this signature in database
GPG Key ID: AFA9DE5F8AB7AF39
1 changed files with 10 additions and 0 deletions

View File

@ -34,6 +34,16 @@ linters-settings:
- "appendAssign"
- "singleCaseSwitch"
- "exitAfterDefer" # FIXME
importas:
alias:
# Enforce alias to prevent it accidentally being used instead of
# buildkit errdefs package (or vice-versa).
- pkg: "github.com/containerd/errdefs"
alias: "cerrdefs"
- pkg: "github.com/opencontainers/image-spec/specs-go/v1"
alias: "ocispecs"
- pkg: "github.com/opencontainers/go-digest"
alias: "digest"
govet:
enable:
- nilness