Add option to set dist on sourcemaps
See original GitHub issueI’m using the Sentry Release action to create a release of my React Native app and part of that is uploading sourcemaps. Here’s how I’m doing it:
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
VERSION_CODE: ${{ steps.get_version.outputs.VERSION_CODE }}
VERSION_NAME: ${{ steps.get_version.outputs.VERSION_NAME }}
with:
environment: production
version: com.a494studios.koreanconjugator@${{ env.VERSION_NAME }}+${{ env.VERSION_CODE }}
url_prefix: app:///
sourcemaps: android/app/build/generated/assets/react/release/index.android.bundle android/app/build/generated/sourcemaps/react/release/index.android.bundle.map
The problem is that the sourcemaps aren’t working correctly because they’re not being assigned a dist
value. With the CLI I would use the --dist
flag, but I don’t see an option for that in the docs or in the source code. Is there any interest in adding a dist
option to this action? I could probably make a PR to add that change in if it’s desired.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:5
Top Results From Across the Web
Allow adding --dist option in uploading source map #703
Hi @HazAT, currently I'm facing a problem of Source code was not found in Url app:///index.android.bundle. I'm using Sentry together with ...
Read more >source-map-loader - webpack
source-map -loader allows webpack to maintain source map data continuity across libraries so ease of debugging is preserved. The source-map-loader will extract ...
Read more >gulp-sourcemaps - npm
Start using gulp-sourcemaps in your project by running `npm i ... To load existing source maps, pass the option loadMaps: true to ...
Read more >Create and upload source maps (RUM) | APM User Guide [8.5]
sourcemap - The location of the source map. If you have multiple source maps, you'll need to upload each individually. Upload via curledit....
Read more >Troubleshooting Source Maps for JavaScript
To add a dist value to your uploaded source maps, use the --dist flag with sentry-cli or the dist option in our Sentry...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Ninjaman494 Thats a good work around. Thanks for the suggestion! I think I’ll implement that for a fix
If
dist
(in events) isn’t a must-have, assigningdist = ''
inSentry.init
seems strip it (as opposed todist = undefined
ordist = null
).