When uploading bundles via sentry-cli sourcemaps upload, the bundle sourcemap path is directly passed to the command (--bundle-sourcemap is required when --bundle is provided). Therefore, we should not be calling guess_sourcemap_reference in the code path for unpacking the bundle. Instead, we should use the path provided, and error if no sourcemap is present at that path.
Making this refactor likely will allow the tests to pass on the parent issue's PR.
When uploading bundles via
sentry-cli sourcemaps upload, the bundle sourcemap path is directly passed to the command (--bundle-sourcemapis required when--bundleis provided). Therefore, we should not be callingguess_sourcemap_referencein the code path for unpacking the bundle. Instead, we should use the path provided, and error if no sourcemap is present at that path.Making this refactor likely will allow the tests to pass on the parent issue's PR.