Skip to content

Doesn't work on Codemagic #400

Description

@TheCarpetMerchant

I'm getting this error when running the flutter pub run sentry_dart_plugin command in the post-build script on Codemagic (ios build) :

Dart symbol map upload summary: attempted=1, succeeded=1, failed=0

☑ uploading Dart symbol map(s)                                                             

☑ uploading debug symbols                                                             

INFO    2026-05-04 15:51:49.585937 +00:00 sentry-cli was invoked with the following command line: "/Users/builder/clone/.dart_tool/pub/bin/sentry_dart_plugin/sentry-cli" "--auth-token" "[REDACTED]" "--log-level" "info" "releases" "--org" "none-179" "--project" "flutter" "new" "test_project@1.0.0"

Created release test_project@1.0.0

uploadSourceMaps is disabled.

INFO    2026-05-04 15:51:50.081092 +00:00 sentry-cli was invoked with the following command line: "/Users/builder/clone/.dart_tool/pub/bin/sentry_dart_plugin/sentry-cli" "--auth-token" "[REDACTED]" "--log-level" "info" "releases" "--org" "none-179" "--project" "flutter" "set-commits" "test_project@1.0.0" "--auto"

INFO    2026-05-04 15:51:50.492618 +00:00 Resolving HEAD (origin@HEAD)

Could not determine any commits to be associated with a repo-based integration. Proceeding to find commits from local git tree.

error: 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.

exitCode: 1
Failed to update packages.

All the uploads appear to have gone well aside from the set-commits command.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingDart

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions