diff --git a/pkg/build/gobuild.go b/pkg/build/gobuild.go index 5bb3ea5b7..6776896a4 100644 --- a/pkg/build/gobuild.go +++ b/pkg/build/gobuild.go @@ -331,6 +331,8 @@ func getDelve(ctx context.Context, platform v1.Platform) (string, error) { // install delve to tmp directory args := []string{ "build", + "-trimpath", + "-ldflags=-s -w", "-o", delveBinaryPath, "./cmd/dlv",