From 29b9ec59a9268cbe784f005778b1b9e430f3d02b Mon Sep 17 00:00:00 2001 From: nickchomey <88559987+nickchomey@users.noreply.github.com> Date: Sat, 28 Sep 2024 10:55:19 -0600 Subject: [PATCH] Add a debug build to the Makefile Allows for step debugging a connector. More context in this discussion which provides instructions to step debug a connector https://github.com/ConduitIO/conduit/discussions/1724#discussioncomment-10768981 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index a1b16d1..d6d4691 100644 --- a/Makefile +++ b/Makefile @@ -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 ./...