Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Inject debug ids into source and sourcemap files before uploading #1513

Merged
merged 1 commit into from Mar 13, 2023

Conversation

loewenheim
Copy link
Contributor

This ensures that debug ids are injected into source files and sourcemaps before uploading. A --no-inject flag is provided to disable this behavior.

As a refactoring, most of the injection logic is moved into a new module under utils/sourcemaps. This may be easier to understand by looking at the commits individually.

Questions:

  • should the --no-inject flag be hidden?
  • is the injection happening in the right place in upload.rs?

@loewenheim loewenheim requested review from kamilogorek and Swatinem and removed request for kamilogorek March 9, 2023 15:01
@loewenheim loewenheim self-assigned this Mar 9, 2023
@loewenheim loewenheim linked an issue Mar 9, 2023 that may be closed by this pull request
@loewenheim loewenheim linked an issue Mar 9, 2023 that may be closed by this pull request
src/commands/sourcemaps/upload.rs Outdated Show resolved Hide resolved
src/commands/sourcemaps/upload.rs Outdated Show resolved Hide resolved
src/utils/sourcemaps/inject.rs Outdated Show resolved Hide resolved
@kamilogorek kamilogorek merged commit bf2b252 into ref/inject-print Mar 13, 2023
11 of 14 checks passed
@kamilogorek kamilogorek deleted the feat/upload-inject branch March 13, 2023 11:48
@kamilogorek
Copy link
Contributor

should the --no-inject flag be hidden?

Hidden for now.

kamilogorek pushed a commit that referenced this pull request Mar 13, 2023
kamilogorek pushed a commit that referenced this pull request Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make code injection part of Sentry CLI upload
3 participants