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: Add SourceLink support to SourceBundles #804

Merged
merged 13 commits into from
Jul 14, 2023

Conversation

loewenheim
Copy link
Contributor

Based on #803.

This adds a source_links map to the sourcebundle manifest, but for now there are no methods for populating it. Lookup functionality is included, however.

@github-actions
Copy link

github-actions bot commented Jul 13, 2023

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 89a4053

Comment on lines 913 to 914
match self.index.indexed_files.get(&key) {
Some(zip_path) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer an if let Some() with an early return, but thats just preference :-)

Comment on lines 921 to 923
let FileKey::Path(path) = key else {
return Ok(None);
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fun fact, now that we have rustfmt support for let-else, if you remove the ; from the inner return, it will keep auto-formating things onto a single line, if it was on a single line to begin with.

@loewenheim loewenheim force-pushed the feat/sourcebundle-sourcelinks branch from 76f02ee to bcf3f6d Compare July 14, 2023 09:32
Base automatically changed from ref/sourcelinks to master July 14, 2023 10:29
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #804 (eba0142) into master (760f7c4) will increase coverage by 0.08%.
The diff coverage is 100.00%.

❗ Current head eba0142 differs from pull request most recent head 89a4053. Consider uploading reports for the commit 89a4053 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #804      +/-   ##
==========================================
+ Coverage   74.80%   74.89%   +0.08%     
==========================================
  Files          63       63              
  Lines       15603    15656      +53     
==========================================
+ Hits        11672    11725      +53     
  Misses       3931     3931              

@Swatinem Swatinem merged commit 89d6f32 into master Jul 14, 2023
11 checks passed
@Swatinem Swatinem deleted the feat/sourcebundle-sourcelinks branch July 14, 2023 11:41
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.

None yet

3 participants