Skip to content

Commit 613fc71

Browse files
authored
chore: remove mockery (#8417)
1 parent e9b3f0b commit 613fc71

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

.golangci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ run:
126126

127127
issues:
128128
exclude-files:
129-
- "mock_*.go$"
130129
- "examples/*"
131130
exclude-dirs:
132131
- "pkg/iac/scanners/terraform/parser/funcs" # copies of Terraform functions

magefiles/magefile.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -147,33 +147,12 @@ func (Tool) Goyacc() error {
147147
return sh.Run("go", "install", "golang.org/x/tools/cmd/[email protected]")
148148
}
149149

150-
// Mockery installs mockery
151-
func (Tool) Mockery() error {
152-
if exists(filepath.Join(GOBIN, "mockery")) {
153-
return nil
154-
}
155-
return sh.Run("go", "install", "github.com/vektra/mockery/[email protected]")
156-
}
157-
158150
// Wire generates the wire_gen.go file for each package
159151
func Wire() error {
160152
mg.Deps(Tool{}.Wire)
161153
return sh.RunV("wire", "gen", "./pkg/commands/...", "./pkg/rpc/...", "./pkg/k8s/...")
162154
}
163155

164-
// Mock generates mocks
165-
func Mock(dir string) error {
166-
mg.Deps(Tool{}.Mockery)
167-
mockeryArgs := []string{
168-
"--all",
169-
"--inpackage",
170-
"--case=snake",
171-
"--dir",
172-
dir,
173-
}
174-
return sh.RunV("mockery", mockeryArgs...)
175-
}
176-
177156
// Protoc parses PROTO_FILES and generates the Go code for client/server mode
178157
func Protoc() error {
179158
// It is called in the protoc container

0 commit comments

Comments
 (0)