Skip to content

Commit

Permalink
Add a debug build to the Makefile
Browse files Browse the repository at this point in the history
Allows for step debugging a connector. More context in this discussion which provides instructions to step debug a connector 

ConduitIO/conduit#1724 (reply in thread)
  • Loading branch information
nickchomey authored Sep 28, 2024
1 parent 1c920dd commit 29b9ec5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ VERSION=$(shell git describe --tags --dirty --always)
build:
go build -ldflags "-X 'github.com/conduitio/conduit-connector-connectorname.version=${VERSION}'" -o conduit-connector-connectorname cmd/connector/main.go

.PHONY: build-debug
build-debug:
go build -gcflags=all="-N -l" -ldflags="-X 'github.com/conduitio/conduit-connector-connectorname.version=${VERSION}'" -o conduit-connector-connectorname cmd/connector/main.go

.PHONY: test
test:
go test $(GOTEST_FLAGS) -race ./...
Expand Down

0 comments on commit 29b9ec5

Please sign in to comment.