conntrackfixer: import mock dependency

This prevents go.mod to be different depending of go mod tidy is run
before or after generating the mocks.
This commit is contained in:
Vincent Bernat
2024-05-01 08:55:08 +02:00
parent b1b9ad1369
commit 88a8b74085
2 changed files with 2 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/events"
"github.com/docker/go-connections/nat"
_ "github.com/opencontainers/image-spec/specs-go/v1" // used by mock
"github.com/ti-mo/conntrack"
"go.uber.org/mock/gomock"

2
go.mod
View File

@@ -33,6 +33,7 @@ require (
github.com/netsampler/goflow2/v2 v2.1.3
github.com/openconfig/gnmi v0.11.0
github.com/openconfig/gnmic/pkg/api v0.1.5
github.com/opencontainers/image-spec v1.1.0
github.com/oschwald/maxminddb-golang v1.12.0
github.com/osrg/gobgp/v3 v3.25.0
github.com/prometheus/client_golang v1.19.0
@@ -131,7 +132,6 @@ require (
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/openconfig/grpctunnel v0.1.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/paulmach/orb v0.11.1 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/pierrec/lz4/v4 v4.1.21 // indirect