Skip to content

Commit

Permalink
Merge pull request #1712 from shiftstack/gomock-vendoring
Browse files Browse the repository at this point in the history
🌱 Add explicit dependency on github.com/golang/mock/mockgen/model
  • Loading branch information
k8s-ci-robot authored Oct 6, 2023
2 parents 012d961 + de1a0f4 commit 3652e4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/clients/mock/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ limitations under the License.

package mock

import (
// Runtime dependency of mockgen, required when using vendoring so go mod knows
// to pull it in.
_ "github.com/golang/mock/mockgen/model"
)

//go:generate mockgen -package mock -destination=compute.go sigs.k8s.io/cluster-api-provider-openstack/pkg/clients ComputeClient
//go:generate /usr/bin/env bash -c "cat ../../../hack/boilerplate/boilerplate.generatego.txt compute.go > _compute.go && mv _compute.go compute.go"

Expand Down

0 comments on commit 3652e4b

Please sign in to comment.