From 2e974e11df132f8cc12f60c3d87233552fd1a1fd Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 14 Jul 2026 15:19:23 +0300 Subject: [PATCH] reapply SENTRY_DIST patch --- .../@sentry__expo-upload-sourcemaps@8.18.0.patch | 14 ++++++++++++++ ...@sentry__expo-upload-sourcemaps@8.18.0.patch.md | 7 +++++++ pnpm-lock.yaml | 5 +++-- pnpm-workspace.yaml | 1 + 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 patches/@sentry__expo-upload-sourcemaps@8.18.0.patch create mode 100644 patches/@sentry__expo-upload-sourcemaps@8.18.0.patch.md diff --git a/patches/@sentry__expo-upload-sourcemaps@8.18.0.patch b/patches/@sentry__expo-upload-sourcemaps@8.18.0.patch new file mode 100644 index 0000000000..6246e99203 --- /dev/null +++ b/patches/@sentry__expo-upload-sourcemaps@8.18.0.patch @@ -0,0 +1,14 @@ +diff --git a/cli.js b/cli.js +index 2a2e6afbd46a6a5182918373d71853193945ff31..44e5888e869003438fc7ef4931b9992f2896a23f 100755 +--- a/cli.js ++++ b/cli.js +@@ -304,6 +304,9 @@ for (const [assetGroupName, assets] of Object.entries(groupedAssets)) { + if (isHermes) { + args.push('--debug-id-reference'); + } ++ if (process.env.SENTRY_DIST) { ++ args.push('--dist', process.env.SENTRY_DIST); ++ } + args.push(...assets); + + const result = spawnSync(sentryCliBin, args, { diff --git a/patches/@sentry__expo-upload-sourcemaps@8.18.0.patch.md b/patches/@sentry__expo-upload-sourcemaps@8.18.0.patch.md new file mode 100644 index 0000000000..6c09e13261 --- /dev/null +++ b/patches/@sentry__expo-upload-sourcemaps@8.18.0.patch.md @@ -0,0 +1,7 @@ +# @sentry/expo-upload-sourcemaps patch + +Adds `--dist $SENTRY_DIST` to the `sentry-cli sourcemaps upload` call, when the +env var is set. Symbolication matches on debug IDs so this isn't strictly +required, but it keeps OTA sourcemap artifacts associated with the commit hash +(`dist`) in the Sentry UI, matching the runtime `dist` set in +`src/logger/sentry/setup/index.ts`. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b6ebf781cd..70e5e2ccf1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -215,6 +215,7 @@ overrides: react-native-screens: 4.24.0 patchedDependencies: + '@sentry/expo-upload-sourcemaps@8.18.0': 2368e1e1986165e7ead3c60017b78b2f9ade1b6a6b2f5ad27cd428608c6f12ae expo-age-range@0.2.18: c325225749993424461eeece1d97a99b19c00da2ebc958a73c12e4eca0c39306 expo-glass-effect@55.0.8: 6c9fa5b104e53b87df4e17b320acb3b94d12ac90c0101190045dd620681efff0 expo-haptics@15.0.8: b33910ba2753c4eccdc885b449e6e33aa90b9cefa75ca8639762a26013141410 @@ -12157,7 +12158,7 @@ snapshots: dependencies: '@sentry/conventions': 0.15.1 - '@sentry/expo-upload-sourcemaps@8.18.0(@expo/env@2.0.11)(dotenv@16.6.1)': + '@sentry/expo-upload-sourcemaps@8.18.0(patch_hash=2368e1e1986165e7ead3c60017b78b2f9ade1b6a6b2f5ad27cd428608c6f12ae)(@expo/env@2.0.11)(dotenv@16.6.1)': dependencies: '@sentry/cli': 3.6.0 optionalDependencies: @@ -12174,7 +12175,7 @@ snapshots: '@sentry/browser': 10.64.0 '@sentry/cli': 3.6.0 '@sentry/core': 10.64.0 - '@sentry/expo-upload-sourcemaps': 8.18.0(@expo/env@2.0.11)(dotenv@16.6.1) + '@sentry/expo-upload-sourcemaps': 8.18.0(patch_hash=2368e1e1986165e7ead3c60017b78b2f9ade1b6a6b2f5ad27cd428608c6f12ae)(@expo/env@2.0.11)(dotenv@16.6.1) '@sentry/react': 10.64.0(react@19.1.0) react: 19.1.0 react-native: 0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index d58da4771c..c917be629a 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -19,6 +19,7 @@ allowBuilds: 'esbuild': true 'unrs-resolver': true patchedDependencies: + '@sentry/expo-upload-sourcemaps@8.18.0': patches/@sentry__expo-upload-sourcemaps@8.18.0.patch expo-age-range@0.2.18: patches/expo-age-range@0.2.18.patch 'expo-glass-effect@55.0.8': patches/expo-glass-effect@55.0.8.patch 'expo-haptics@15.0.8': patches/expo-haptics@15.0.8.patch