Skip to content

Commit

Permalink
make processor mock generate command cross-platform compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed Jan 18, 2024
1 parent 2931f24 commit d1c2556
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ install-tools: download
@go mod tidy

generate:
go generate ./...
go generate -x ./...

pkg/web/ui/dist:
make ui-dist
Expand Down
3 changes: 2 additions & 1 deletion pkg/plugin/processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// This generates a mock processor and adds UnimplementedProcessor to it to
// satisfy the sdk.Processor interface.
//go:generate mockgen -destination=mock/processor.go -package=mock -mock_names=Processor=Processor github.com/conduitio/conduit-processor-sdk Processor
//go:generate sed -i "" -e "/type Processor struct {/a\\\n sdk.UnimplementedProcessor" ./mock/processor.go
//go:generate sed -i.bak -e "/type Processor struct {/a\\\n sdk.UnimplementedProcessor" ./mock/processor.go
//go:generate rm ./mock/processor.go.bak

package processor

0 comments on commit d1c2556

Please sign in to comment.