Skip to content

sourcemap upload: support repeated and combined strip flags #2596

Done

Description

@sentry-junior

sentry sourcemap upload takes a single --strip-prefix, and rejects it together with --strip-common-prefix. sentry-cli accepted both: --strip-prefix could be repeated, and --strip-common-prefix just added the ~ (common prefix) entry to the same list, which rust-sourcemap's strip_prefixes applies first-match-wins.

Proposal from the #2584 review: make --strip-prefix repeatable, first match wins as in sentry-cli, and allow it together with --strip-common-prefix, applying the explicit prefixes first and then the common prefix. This applies to both uploaded file names and sources.

via @BYK.

--

View Session [Sentry]

Activity

  1. linear-code commented on Nov 30, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions