sentry-cli 3.6.1__tar.gz → 3.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/Cargo.lock +3 -3
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/Cargo.toml +1 -1
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/PKG-INFO +1 -1
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/sentry_cli.egg-info/PKG-INFO +1 -1
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/build/upload.rs +111 -10
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/login.rs +11 -9
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/logs/list.rs +1 -1
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/mod.rs +5 -10
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/snapshots/upload.rs +19 -7
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/config.rs +355 -120
- sentry_cli-3.7.0/src/utils/build/apple.rs +573 -0
- sentry_cli-3.6.1/src/utils/build/apple.rs +0 -160
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/LICENSE +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/MANIFEST.in +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/README.md +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/AGENTS.md +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/CLAUDE.md +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/Cargo.toml +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/build.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Package.swift +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Sources/AssetCatalogParser/AssetCatalogReader.swift +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Sources/ObjcSupport/include/safeValueForKey.h +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Sources/ObjcSupport/safeValueForKey.m +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Tests/AssetCatalogParserTests/AssetCatalogParserTests.swift +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Tests/AssetCatalogParserTests/Resources/test.xcarchive/Info.plist +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Tests/AssetCatalogParserTests/Resources/test.xcarchive/Products/Applications/DemoApp.app/Assets.car +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/src/asset_catalog.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/apple-catalog-parsing/src/lib.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/build.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/pyproject.toml +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/sentry_cli.egg-info/SOURCES.txt +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/sentry_cli.egg-info/dependency_links.txt +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/sentry_cli.egg-info/top_level.txt +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/setup.cfg +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/setup.py +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/AGENTS.md +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/CLAUDE.md +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/connection_manager.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/chunking/artifact.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/chunking/build.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/chunking/compression.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/chunking/dif.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/chunking/file_state.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/chunking/hash_algorithm.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/chunking/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/chunking/upload/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/chunking/upload/options.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/code_mappings.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/deploy.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/data_types/snapshots.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/encoding.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/envelopes_api.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/errors/api_error.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/errors/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/errors/sentry_error.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/pagination.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/serialization.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/api/updating.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/bashsupport.sh +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/bash_hook.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/build/download.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/build/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/code_mappings/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/code_mappings/upload.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/dart_symbol_map/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/dart_symbol_map/upload.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/debug_files/bundle_jvm.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/debug_files/bundle_sources.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/debug_files/check.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/debug_files/find.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/debug_files/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/debug_files/print_sources.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/debug_files/upload.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/deploys/list.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/deploys/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/deploys/new.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/derive_parser.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/events/list.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/events/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/info.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/issues/list.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/issues/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/issues/mute.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/issues/resolve.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/issues/unresolve.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/logs/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/monitors/list.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/monitors/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/monitors/run.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/organizations/list.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/organizations/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/proguard/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/proguard/upload.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/proguard/uuid.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/projects/list.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/projects/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/react_native/gradle.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/react_native/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/react_native/xcode.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/releases/archive.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/releases/delete.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/releases/finalize.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/releases/info.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/releases/list.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/releases/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/releases/new.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/releases/propose_version.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/releases/restore.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/releases/set_commits.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/repos/list.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/repos/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/send_envelope.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/send_event.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/send_metric/common_args.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/send_metric/increment.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/send_metric/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/send_metric/set.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/snapshots/diff.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/snapshots/download.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/snapshots/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/sourcemaps/inject.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/sourcemaps/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/sourcemaps/resolve.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/sourcemaps/upload.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/uninstall.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/update.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/upload_dif.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/upload_dsym.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/commands/upload_proguard.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/constants.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/main.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/android.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/args.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/auth_token/auth_token_impl.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/auth_token/error.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/auth_token/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/auth_token/org_auth_token.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/auth_token/redacting.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/auth_token/test.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/auth_token/user_auth_token.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/build/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/build/normalize.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/build/validation.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/build_vcs.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/chunks/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/chunks/options.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/chunks/types.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/chunks/upload.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/ci.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/cordova.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/dif.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/dif_upload/error.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/dif_upload/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/event.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/file_search.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/file_upload.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/formatting.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/fs.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/http.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/logging.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/non_empty.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/odiff/binary.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/odiff/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/odiff/server.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/progress.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/proguard/mapping.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/proguard/mod.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/proguard/upload.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/releases.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/retry.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__generate_patch_default_twenty.snap +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__generate_patch_ignore_missing.snap +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__generate_patch_set_base.snap +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__generate_patch_set_previous_commit.snap +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__get_commits_from_git.snap +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/source_bundle.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/sourcemaps/inject.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/sourcemaps.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/system.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/ui.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/update.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/value_parsers.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/vcs.rs +0 -0
- {sentry_cli-3.6.1 → sentry_cli-3.7.0}/src/utils/xcode.rs +0 -0
|
@@ -640,9 +640,9 @@ dependencies = [
|
|
|
640
640
|
|
|
641
641
|
[[package]]
|
|
642
642
|
name = "crossbeam-epoch"
|
|
643
|
-
version = "0.9.
|
|
643
|
+
version = "0.9.20"
|
|
644
644
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
645
|
-
checksum = "
|
|
645
|
+
checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
|
|
646
646
|
dependencies = [
|
|
647
647
|
"crossbeam-utils",
|
|
648
648
|
]
|
|
@@ -3600,7 +3600,7 @@ dependencies = [
|
|
|
3600
3600
|
|
|
3601
3601
|
[[package]]
|
|
3602
3602
|
name = "sentry-cli"
|
|
3603
|
-
version = "3.
|
|
3603
|
+
version = "3.7.0"
|
|
3604
3604
|
dependencies = [
|
|
3605
3605
|
"anyhow",
|
|
3606
3606
|
"anylog",
|
|
@@ -35,7 +35,7 @@ pub fn make_command(command: Command) -> Command {
|
|
|
35
35
|
#[cfg(not(all(target_os = "macos", target_arch = "aarch64")))]
|
|
36
36
|
const HELP_TEXT: &str =
|
|
37
37
|
"The path to the build to upload. Supported files include Apk, and Aab.";
|
|
38
|
-
command
|
|
38
|
+
let command = command
|
|
39
39
|
.about("Upload builds to a project.")
|
|
40
40
|
.long_about("Upload builds to a project.\n\nThis feature only works with Sentry SaaS.")
|
|
41
41
|
.org_arg()
|
|
@@ -68,7 +68,18 @@ pub fn make_command(command: Command) -> Command {
|
|
|
68
68
|
Builds with at least one matching install group will be shown updates \
|
|
69
69
|
for each other.",
|
|
70
70
|
)
|
|
71
|
-
)
|
|
71
|
+
);
|
|
72
|
+
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
|
|
73
|
+
let command = command.arg(
|
|
74
|
+
Arg::new("dsym")
|
|
75
|
+
.long("dsym")
|
|
76
|
+
.value_name("PATH")
|
|
77
|
+
.help(
|
|
78
|
+
"Path to a dSYM bundle, a directory containing dSYM bundles, or a ZIP of either to include with an IPA upload. Can be specified multiple times.",
|
|
79
|
+
)
|
|
80
|
+
.action(ArgAction::Append),
|
|
81
|
+
);
|
|
82
|
+
command
|
|
72
83
|
}
|
|
73
84
|
|
|
74
85
|
/// Parse plugin info from SENTRY_PIPELINE environment variable.
|
|
@@ -104,6 +115,16 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
104
115
|
.get_many::<String>("paths")
|
|
105
116
|
.expect("paths argument is required");
|
|
106
117
|
|
|
118
|
+
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
|
|
119
|
+
let dsym_paths = matches
|
|
120
|
+
.get_many::<String>("dsym")
|
|
121
|
+
.map(|paths| paths.map(Path::new).collect::<Vec<_>>())
|
|
122
|
+
.unwrap_or_default();
|
|
123
|
+
#[cfg(not(all(target_os = "macos", target_arch = "aarch64")))]
|
|
124
|
+
let dsym_paths = Vec::<&Path>::new();
|
|
125
|
+
|
|
126
|
+
validate_dsym_upload_count(path_strings.len(), &dsym_paths)?;
|
|
127
|
+
|
|
107
128
|
// Collect git metadata if running in CI, unless explicitly enabled or disabled.
|
|
108
129
|
let should_collect_git_metadata =
|
|
109
130
|
matches.get_flag("force_git_metadata") || (!matches.get_flag("no_git_metadata") && is_ci());
|
|
@@ -167,10 +188,15 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
167
188
|
handle_file(
|
|
168
189
|
path,
|
|
169
190
|
&byteview,
|
|
191
|
+
&dsym_paths,
|
|
170
192
|
plugin_name.as_deref(),
|
|
171
193
|
plugin_version.as_deref(),
|
|
172
194
|
)?
|
|
173
195
|
} else if path.is_dir() {
|
|
196
|
+
if !dsym_paths.is_empty() {
|
|
197
|
+
bail!("--dsym can only be used with an IPA upload");
|
|
198
|
+
}
|
|
199
|
+
|
|
174
200
|
debug!("Normalizing directory: {}", path.display());
|
|
175
201
|
handle_directory(path, plugin_name.as_deref(), plugin_version.as_deref()).with_context(
|
|
176
202
|
|| {
|
|
@@ -260,17 +286,25 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
260
286
|
fn handle_file(
|
|
261
287
|
path: &Path,
|
|
262
288
|
byteview: &ByteView,
|
|
289
|
+
_dsym_paths: &[&Path],
|
|
263
290
|
plugin_name: Option<&str>,
|
|
264
291
|
plugin_version: Option<&str>,
|
|
265
292
|
) -> Result<TempFile> {
|
|
266
|
-
// Handle IPA files by converting them to XCArchive
|
|
267
293
|
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
294
|
+
{
|
|
295
|
+
let is_ipa = is_zip_file(byteview) && is_ipa_file(byteview)?;
|
|
296
|
+
if !is_ipa && !_dsym_paths.is_empty() {
|
|
297
|
+
bail!("--dsym can only be used with an IPA upload");
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// Handle IPA files by converting them to XCArchive
|
|
301
|
+
if is_ipa {
|
|
302
|
+
debug!("Converting IPA file to XCArchive structure");
|
|
303
|
+
let archive_temp_dir = TempDir::create()?;
|
|
304
|
+
return ipa_to_xcarchive(path, byteview, _dsym_paths, &archive_temp_dir)
|
|
305
|
+
.and_then(|path| handle_directory(&path, plugin_name, plugin_version))
|
|
306
|
+
.with_context(|| format!("Failed to process IPA file {}", path.display()));
|
|
307
|
+
}
|
|
274
308
|
}
|
|
275
309
|
|
|
276
310
|
normalize_file(path, byteview, plugin_name, plugin_version).with_context(|| {
|
|
@@ -281,6 +315,15 @@ fn handle_file(
|
|
|
281
315
|
})
|
|
282
316
|
}
|
|
283
317
|
|
|
318
|
+
fn validate_dsym_upload_count(upload_count: usize, dsym_paths: &[&Path]) -> Result<()> {
|
|
319
|
+
// dSYM inputs apply to the whole command, so their target would be ambiguous
|
|
320
|
+
// if the same invocation uploaded multiple builds.
|
|
321
|
+
if upload_count > 1 && !dsym_paths.is_empty() {
|
|
322
|
+
bail!("--dsym can only be used when uploading exactly one IPA file");
|
|
323
|
+
}
|
|
324
|
+
Ok(())
|
|
325
|
+
}
|
|
326
|
+
|
|
284
327
|
fn validate_is_supported_build(path: &Path, bytes: &[u8]) -> Result<()> {
|
|
285
328
|
debug!("Validating build format for: {}", path.display());
|
|
286
329
|
|
|
@@ -549,7 +592,7 @@ mod tests {
|
|
|
549
592
|
let byteview = ByteView::open(ipa_path)?;
|
|
550
593
|
|
|
551
594
|
// Process the IPA file - this should work even without asset catalogs
|
|
552
|
-
let result = handle_file(ipa_path, &byteview, None, None)?;
|
|
595
|
+
let result = handle_file(ipa_path, &byteview, &[], None, None)?;
|
|
553
596
|
|
|
554
597
|
let zip_file = fs::File::open(result.path())?;
|
|
555
598
|
let mut archive = ZipArchive::new(zip_file)?;
|
|
@@ -573,6 +616,64 @@ mod tests {
|
|
|
573
616
|
Ok(())
|
|
574
617
|
}
|
|
575
618
|
|
|
619
|
+
#[test]
|
|
620
|
+
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
|
|
621
|
+
fn test_dsym_arg_is_repeatable() {
|
|
622
|
+
let matches = make_command(Command::new("test"))
|
|
623
|
+
.try_get_matches_from([
|
|
624
|
+
"test",
|
|
625
|
+
"--org",
|
|
626
|
+
"test-org",
|
|
627
|
+
"--project",
|
|
628
|
+
"test-project",
|
|
629
|
+
"--dsym",
|
|
630
|
+
"DemoApp.app.dSYM",
|
|
631
|
+
"--dsym",
|
|
632
|
+
"DemoFramework.framework.dSYM",
|
|
633
|
+
"DemoApp.ipa",
|
|
634
|
+
])
|
|
635
|
+
.unwrap();
|
|
636
|
+
|
|
637
|
+
let dsym_paths = matches
|
|
638
|
+
.get_many::<String>("dsym")
|
|
639
|
+
.unwrap()
|
|
640
|
+
.collect::<Vec<_>>();
|
|
641
|
+
assert_eq!(
|
|
642
|
+
dsym_paths,
|
|
643
|
+
["DemoApp.app.dSYM", "DemoFramework.framework.dSYM"]
|
|
644
|
+
);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
#[test]
|
|
648
|
+
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
|
|
649
|
+
fn test_dsym_rejects_multiple_uploads() {
|
|
650
|
+
let error = validate_dsym_upload_count(2, &[Path::new("DemoApp.app.dSYM")])
|
|
651
|
+
.unwrap_err()
|
|
652
|
+
.to_string();
|
|
653
|
+
assert_eq!(
|
|
654
|
+
error,
|
|
655
|
+
"--dsym can only be used when uploading exactly one IPA file"
|
|
656
|
+
);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
#[test]
|
|
660
|
+
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
|
|
661
|
+
fn test_dsym_rejects_non_ipa_upload() -> Result<()> {
|
|
662
|
+
let apk_path = Path::new("tests/integration/_fixtures/build/apk.apk");
|
|
663
|
+
let byteview = ByteView::open(apk_path)?;
|
|
664
|
+
let error = handle_file(
|
|
665
|
+
apk_path,
|
|
666
|
+
&byteview,
|
|
667
|
+
&[Path::new("DemoApp.app.dSYM")],
|
|
668
|
+
None,
|
|
669
|
+
None,
|
|
670
|
+
)
|
|
671
|
+
.unwrap_err()
|
|
672
|
+
.to_string();
|
|
673
|
+
assert_eq!(error, "--dsym can only be used with an IPA upload");
|
|
674
|
+
Ok(())
|
|
675
|
+
}
|
|
676
|
+
|
|
576
677
|
#[test]
|
|
577
678
|
fn test_normalize_directory_preserves_symlinks() -> Result<()> {
|
|
578
679
|
let temp_dir = crate::utils::fs::TempDir::create()?;
|
|
@@ -19,9 +19,9 @@ pub fn make_command(command: Command) -> Command {
|
|
|
19
19
|
)
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
fn update_config(config: &Config, token: AuthToken) -> Result<()> {
|
|
22
|
+
fn update_config(config: &Config, token: AuthToken, url: &str) -> Result<()> {
|
|
23
23
|
let mut new_cfg = config.clone();
|
|
24
|
-
new_cfg.
|
|
24
|
+
new_cfg.set_auth_and_url(Auth::Token(token), url);
|
|
25
25
|
new_cfg.save()?;
|
|
26
26
|
Ok(())
|
|
27
27
|
}
|
|
@@ -61,7 +61,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
let mut token;
|
|
64
|
-
loop {
|
|
64
|
+
let validated_url = loop {
|
|
65
65
|
token = if let Some(token) = predefined_token {
|
|
66
66
|
token.to_owned()
|
|
67
67
|
} else {
|
|
@@ -72,6 +72,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
72
72
|
cfg.set_auth(Auth::Token(token.clone()));
|
|
73
73
|
Ok(())
|
|
74
74
|
})?;
|
|
75
|
+
let tested_url = test_cfg.get_base_url()?.to_owned();
|
|
75
76
|
|
|
76
77
|
match Api::with_config(test_cfg).authenticated()?.get_auth_info() {
|
|
77
78
|
Ok(info) => {
|
|
@@ -85,7 +86,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
85
86
|
println!("Valid org token");
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
|
-
break;
|
|
89
|
+
break tested_url;
|
|
89
90
|
}
|
|
90
91
|
Err(err) => {
|
|
91
92
|
// Convert to anyhow error to take advantage of anyhow's Debug impl
|
|
@@ -98,20 +99,21 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
}
|
|
102
|
+
};
|
|
102
103
|
|
|
103
104
|
let config_to_update = if matches.get_flag("global") {
|
|
104
105
|
Config::global()?
|
|
105
106
|
} else {
|
|
106
|
-
Config::from_cli_config()?
|
|
107
|
+
Config::from_cli_config(None, None)?
|
|
107
108
|
};
|
|
108
109
|
|
|
109
|
-
|
|
110
|
+
let persisted_auth = config_to_update.get_persisted_auth();
|
|
111
|
+
if should_warn_about_overwrite(persisted_auth.as_ref(), &token) {
|
|
110
112
|
println!();
|
|
111
113
|
println!("Warning: You are about to overwrite an existing token!");
|
|
112
114
|
|
|
113
115
|
// Show organization information
|
|
114
|
-
if let Some(existing_auth) =
|
|
116
|
+
if let Some(existing_auth) = persisted_auth.as_ref() {
|
|
115
117
|
let existing_org = get_org_from_auth(existing_auth);
|
|
116
118
|
let new_org = get_org_from_token(&token);
|
|
117
119
|
|
|
@@ -126,7 +128,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
|
|
129
|
-
update_config(&config_to_update, token)?;
|
|
131
|
+
update_config(&config_to_update, token, &validated_url)?;
|
|
130
132
|
println!();
|
|
131
133
|
println!(
|
|
132
134
|
"Stored token in {}",
|
|
@@ -66,7 +66,7 @@ pub(super) struct ListLogsArgs {
|
|
|
66
66
|
max_rows: NonZeroUsize,
|
|
67
67
|
|
|
68
68
|
#[arg(long = "query", default_value = "", hide_default_value = true)]
|
|
69
|
-
#[arg(help = "Query to filter logs. Example: \"
|
|
69
|
+
#[arg(help = "Query to filter logs. Example: \"severity:error\". \
|
|
70
70
|
If omitted, no filtering is applied. \
|
|
71
71
|
See https://docs.sentry.io/concepts/search/ for syntax.")]
|
|
72
72
|
query: String,
|
|
@@ -10,7 +10,7 @@ use std::process;
|
|
|
10
10
|
use std::{env, iter};
|
|
11
11
|
|
|
12
12
|
use crate::api::Api;
|
|
13
|
-
use crate::config::
|
|
13
|
+
use crate::config::Config;
|
|
14
14
|
use crate::constants::{ARCH, PLATFORM, VERSION};
|
|
15
15
|
use crate::utils::auth_token::{redact_token_from_string, AuthToken};
|
|
16
16
|
use crate::utils::logging::set_quiet_mode;
|
|
@@ -139,14 +139,6 @@ fn preexecute_hooks() -> Result<bool> {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
fn configure_args(config: &mut Config, matches: &ArgMatches) {
|
|
142
|
-
if let Some(auth_token) = matches.get_one::<AuthToken>("auth_token") {
|
|
143
|
-
config.set_auth(Auth::Token(auth_token.to_owned()));
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
if let Some(url) = matches.get_one::<String>("url") {
|
|
147
|
-
config.set_base_url(url);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
142
|
if let Some(headers) = matches.get_many::<String>("headers") {
|
|
151
143
|
let headers = headers.map(|h| h.to_owned()).collect();
|
|
152
144
|
config.set_headers(headers);
|
|
@@ -263,7 +255,10 @@ pub fn execute() -> Result<()> {
|
|
|
263
255
|
if let Some(&log_level) = log_level {
|
|
264
256
|
set_max_level(log_level);
|
|
265
257
|
}
|
|
266
|
-
let mut config = Config::from_cli_config(
|
|
258
|
+
let mut config = Config::from_cli_config(
|
|
259
|
+
matches.get_one::<String>("url").map(String::as_str),
|
|
260
|
+
matches.get_one::<AuthToken>("auth_token"),
|
|
261
|
+
)?;
|
|
267
262
|
configure_args(&mut config, &matches);
|
|
268
263
|
set_quiet_mode(matches.get_flag("quiet"));
|
|
269
264
|
|
|
@@ -147,10 +147,22 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
147
147
|
debug!("Organization: {org}");
|
|
148
148
|
debug!("Project: {project}");
|
|
149
149
|
|
|
150
|
+
let all_image_file_names = parse_all_image_file_names(matches)?;
|
|
151
|
+
let selective = matches.get_flag("selective") || all_image_file_names.is_some();
|
|
152
|
+
|
|
150
153
|
// Collect image files and read their dimensions
|
|
151
154
|
let images = collect_images(dir_path);
|
|
152
|
-
|
|
153
|
-
|
|
155
|
+
// A complete image name list makes an empty upload a valid selective run:
|
|
156
|
+
// the server can reconstruct unaffected base images as skipped.
|
|
157
|
+
if images.is_empty() && all_image_file_names.is_none() {
|
|
158
|
+
let message = if selective {
|
|
159
|
+
"No image files found; no snapshot was created. Pass \
|
|
160
|
+
--all-image-file-names or --all-image-file-names-file to record an empty \
|
|
161
|
+
selective build."
|
|
162
|
+
} else {
|
|
163
|
+
"No image files found"
|
|
164
|
+
};
|
|
165
|
+
println!("{} {message}", style("!").yellow());
|
|
154
166
|
return Ok(());
|
|
155
167
|
}
|
|
156
168
|
|
|
@@ -163,10 +175,6 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
163
175
|
|
|
164
176
|
validate_image_sizes(&images)?;
|
|
165
177
|
|
|
166
|
-
let all_image_file_names = parse_all_image_file_names(matches)?;
|
|
167
|
-
|
|
168
|
-
let selective = matches.get_flag("selective") || all_image_file_names.is_some();
|
|
169
|
-
|
|
170
178
|
if let Some(ref all_names) = all_image_file_names {
|
|
171
179
|
let all_names_set: HashSet<&str> = all_names.iter().map(|s| s.as_str()).collect();
|
|
172
180
|
let mut unknown: Vec<String> = images
|
|
@@ -190,7 +198,11 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
190
198
|
if images.len() == 1 { "file" } else { "files" }
|
|
191
199
|
);
|
|
192
200
|
|
|
193
|
-
let manifest_entries =
|
|
201
|
+
let manifest_entries = if images.is_empty() {
|
|
202
|
+
HashMap::new()
|
|
203
|
+
} else {
|
|
204
|
+
upload_images(images, &org, &project)?
|
|
205
|
+
};
|
|
194
206
|
|
|
195
207
|
// Build manifest from discovered images
|
|
196
208
|
let diff_threshold = matches.get_one::<f64>("diff_threshold").copied();
|