Skip to content

Commit

Permalink
gowrap fault injection
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanos committed Jan 7, 2025
1 parent 31b4354 commit 8667d44
Show file tree
Hide file tree
Showing 13 changed files with 589 additions and 873 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ $(STAMPDIR)/goimports-$(GOIMPORTS_VER): | $(STAMPDIR) $(LOCALBIN)
@touch $@
$(GOIMPORTS): $(STAMPDIR)/goimports-$(GOIMPORTS_VER)

GOWRAP_VER := v1.4.1
GOWRAP := $(LOCALBIN)/gowrap
$(STAMPDIR)/gowrap-$(GOWRAP_VER): | $(STAMPDIR) $(LOCALBIN)
$(call go-install-tool,$(GOWRAP),github.com/hexdigest/gowrap/cmd/gowrap,$(GOWRAP_VER))
@touch $@
$(GOWRAP): $(STAMPDIR)/gowrap-$(GOWRAP_VER)

# Mockgen is called by name throughout the codebase, so we need to keep the binary name consistent
MOCKGEN_VER := v0.4.0
MOCKGEN := $(LOCALBIN)/mockgen
Expand Down Expand Up @@ -601,9 +608,10 @@ update-dependencies:
@go get -u -t $(PINNED_DEPENDENCIES) ./...
@go mod tidy

go-generate: $(MOCKGEN) $(GOIMPORTS) $(STRINGER)
go-generate: $(MOCKGEN) $(GOIMPORTS) $(STRINGER) $(GOWRAP)
@printf $(COLOR) "Process go:generate directives..."
@go generate ./...
$(MAKE) copyright

ensure-no-changes:
@printf $(COLOR) "Check for local changes..."
Expand Down
238 changes: 0 additions & 238 deletions cmd/tools/genfaultinjection/main.go

This file was deleted.

Loading

0 comments on commit 8667d44

Please sign in to comment.