Skip to content

Commit 3e0e06f

Browse files
Merge pull request #8237 from PoornimaSingour/fix-OCPBUGS-77529
OCPBUGS-77529: clean stale mock files before make generate function
2 parents 06193dc + 289709f commit 3e0e06f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ $(MOCKGEN): ${TOOLS_DIR}/go.mod
169169
cd $(TOOLS_DIR); $(GO) build -tags=tools -o $(BIN_DIR)/mockgen go.uber.org/mock/mockgen
170170

171171

172-
#.PHONY: generate
172+
.PHONY: generate
173173
generate: $(MOCKGEN)
174+
@echo "Cleaning stale mock files..."
175+
git clean -fx -- '*_mock.go'
174176
$(GO) generate ./...
175177

176178
# Compile all tests

0 commit comments

Comments
 (0)