diff --git a/cmd/parca-debuginfo/main.go b/cmd/parca-debuginfo/main.go index a49f95c..ffcf128 100644 --- a/cmd/parca-debuginfo/main.go +++ b/cmd/parca-debuginfo/main.go @@ -172,7 +172,7 @@ func run(kongCtx *kong.Context, flags flags) error { for _, path := range flags.Upload.Paths { buildID := flags.Upload.BuildID - if flags.Upload.Type == "debuginfo" { + if flags.Upload.Type == "debuginfo" && buildID == "" { ef, err := elf.Open(path) if err != nil { return fmt.Errorf("open ELF file: %w", err)