Skip to content

Commit

Permalink
fix(sourcebundles): Don't write empty sourcelinks (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim authored Sep 21, 2023
1 parent 3555302 commit 90adc87
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

**Fixes**

- sourcebundles: Don't write empty `source_links` maps ([#813](https://github.com/getsentry/symbolic/pull/813))

## 12.4.0

**Fixes**
Expand Down
42 changes: 21 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion symbolic-debuginfo/src/sourcebundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ struct SourceBundleManifest {
#[serde(default)]
pub files: BTreeMap<String, SourceFileInfo>,

#[serde(default)]
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub source_links: BTreeMap<String, String>,

/// Arbitrary attributes to include in the bundle.
Expand Down

0 comments on commit 90adc87

Please sign in to comment.