expo / sentry-expo

MIT License
202 stars 83 forks source link

Cannot upload source maps to Sentry #326

Closed mlalitthapa closed 1 year ago

mlalitthapa commented 1 year ago

Error uploading sourcemaps to Sentry: Could not find the SHA of the previous release in the git history. If you limit the clone depth, try to increase it. Otherwise, it means that the commit we are looking for was amended or squashed and cannot be retrieved. Use --ignore-missing flag to skip it and create a new release with the default commits count.

We use the bitbucket pipeline for OTA updates and recently got this error in our builds. I cannot find any configuration for --ignore-missing flag.

This is our app config for sentry.

    "hooks": {
      "postPublish": [
        {
          "file": "sentry-expo/upload-sourcemaps",
          "config": {
            "organization": "org-name",
            "project": "project",
            "authToken": "token",
            "setCommits": true
          }
        }
      ]
    }
byCedric commented 1 year ago

This is likely an issue with Sentry, or how you configured your repository in Bitbucket Pipelines. See Sentry's issues for help, e.g. https://github.com/getsentry/sentry-cli/issues/792

Hope this helps!