Skip to content

Commit fe78e28

Browse files
committed
Allow forcing a certain build id
1 parent 6e576dd commit fe78e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/parca-debuginfo/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func run(kongCtx *kong.Context, flags flags) error {
172172
for _, path := range flags.Upload.Paths {
173173
buildID := flags.Upload.BuildID
174174

175-
if flags.Upload.Type == "debuginfo" {
175+
if flags.Upload.Type == "debuginfo" && buildID == "" {
176176
ef, err := elf.Open(path)
177177
if err != nil {
178178
return fmt.Errorf("open ELF file: %w", err)

0 commit comments

Comments
 (0)