Skip to content

Commit

Permalink
Update golangci/golangci-lint package
Browse files Browse the repository at this point in the history
Update golanci/golangci-lint package from v1.45.2 to v1.50.1.
Run go fmt on package.
Remove deprecated linters.

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
  • Loading branch information
austinvazquez committed Oct 25, 2022
1 parent 31de245 commit b19bc21
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- uses: golangci/golangci-lint-action@v3
with:
version: v1.45.2
version: v1.50.1
working-directory: src/github.com/containerd/go-cni

tests:
Expand Down
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
linters:
enable:
- structcheck
- varcheck
- staticcheck
- unconvert
- gofmt
Expand Down
15 changes: 10 additions & 5 deletions result.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,18 @@ type IPConfig struct {
// Result contains the network information returned by CNI.Setup
//
// a) Interfaces list. Depending on the plugin, this can include the sandbox
// (eg, container or hypervisor) interface name and/or the host interface
// name, the hardware addresses of each interface, and details about the
// sandbox (if any) the interface is in.
//
// (eg, container or hypervisor) interface name and/or the host interface
// name, the hardware addresses of each interface, and details about the
// sandbox (if any) the interface is in.
//
// b) IP configuration assigned to each interface. The IPv4 and/or IPv6 addresses,
// gateways, and routes assigned to sandbox and/or host interfaces.
//
// gateways, and routes assigned to sandbox and/or host interfaces.
//
// c) DNS information. Dictionary that includes DNS information for nameservers,
// domain, search domains and options.
//
// domain, search domains and options.
type Result struct {
Interfaces map[string]*Config
DNS []types.DNS
Expand Down

0 comments on commit b19bc21

Please sign in to comment.