Skip to content

Commit

Permalink
debug: separate target and delve parameters
Browse files Browse the repository at this point in the history
Adds the `--` separator parameter so delve doesn't try to parse any
command line parameters intended for the target binary.
  • Loading branch information
zregvart committed Sep 26, 2024
1 parent 688e132 commit dcd4c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/build/gobuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,7 @@ func (g *gobuild) buildOne(ctx context.Context, refStr string, base v1.Image, pl
"--log",
"--accept-multiclient",
"--api-version=2",
"--",
}

// Augment the base image with our application layer.
Expand Down
1 change: 1 addition & 0 deletions pkg/build/gobuild_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,7 @@ func TestDebugger(t *testing.T) {
"--log",
"--accept-multiclient",
"--api-version=2",
"--",
"/ko-app/ko",
}

Expand Down

0 comments on commit dcd4c9b

Please sign in to comment.