sentry-cli 3.6.2__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.2 → sentry_cli-3.7.0}/Cargo.lock +1 -1
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/Cargo.toml +1 -1
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/PKG-INFO +1 -1
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/sentry_cli.egg-info/PKG-INFO +1 -1
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/build/upload.rs +111 -10
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/logs/list.rs +1 -1
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/snapshots/upload.rs +19 -7
- sentry_cli-3.7.0/src/utils/build/apple.rs +573 -0
- sentry_cli-3.6.2/src/utils/build/apple.rs +0 -160
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/LICENSE +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/MANIFEST.in +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/README.md +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/apple-catalog-parsing/AGENTS.md +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/apple-catalog-parsing/CLAUDE.md +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/apple-catalog-parsing/Cargo.toml +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/apple-catalog-parsing/build.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Package.swift +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Sources/AssetCatalogParser/AssetCatalogReader.swift +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Sources/ObjcSupport/include/safeValueForKey.h +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Sources/ObjcSupport/safeValueForKey.m +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Tests/AssetCatalogParserTests/AssetCatalogParserTests.swift +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/apple-catalog-parsing/native/swift/AssetCatalogParser/Tests/AssetCatalogParserTests/Resources/test.xcarchive/Info.plist +0 -0
- {sentry_cli-3.6.2 → 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.2 → sentry_cli-3.7.0}/apple-catalog-parsing/src/asset_catalog.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/apple-catalog-parsing/src/lib.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/build.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/pyproject.toml +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/sentry_cli.egg-info/SOURCES.txt +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/sentry_cli.egg-info/dependency_links.txt +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/sentry_cli.egg-info/top_level.txt +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/setup.cfg +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/setup.py +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/AGENTS.md +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/CLAUDE.md +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/connection_manager.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/chunking/artifact.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/chunking/build.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/chunking/compression.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/chunking/dif.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/chunking/file_state.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/chunking/hash_algorithm.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/chunking/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/chunking/upload/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/chunking/upload/options.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/code_mappings.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/deploy.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/data_types/snapshots.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/encoding.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/envelopes_api.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/errors/api_error.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/errors/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/errors/sentry_error.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/pagination.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/serialization.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/api/updating.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/bashsupport.sh +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/bash_hook.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/build/download.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/build/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/code_mappings/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/code_mappings/upload.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/dart_symbol_map/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/dart_symbol_map/upload.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/debug_files/bundle_jvm.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/debug_files/bundle_sources.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/debug_files/check.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/debug_files/find.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/debug_files/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/debug_files/print_sources.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/debug_files/upload.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/deploys/list.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/deploys/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/deploys/new.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/derive_parser.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/events/list.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/events/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/info.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/issues/list.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/issues/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/issues/mute.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/issues/resolve.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/issues/unresolve.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/login.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/logs/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/monitors/list.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/monitors/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/monitors/run.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/organizations/list.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/organizations/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/proguard/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/proguard/upload.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/proguard/uuid.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/projects/list.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/projects/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/react_native/gradle.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/react_native/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/react_native/xcode.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/releases/archive.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/releases/delete.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/releases/finalize.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/releases/info.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/releases/list.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/releases/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/releases/new.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/releases/propose_version.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/releases/restore.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/releases/set_commits.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/repos/list.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/repos/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/send_envelope.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/send_event.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/send_metric/common_args.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/send_metric/increment.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/send_metric/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/send_metric/set.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/snapshots/diff.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/snapshots/download.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/snapshots/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/sourcemaps/inject.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/sourcemaps/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/sourcemaps/resolve.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/sourcemaps/upload.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/uninstall.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/update.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/upload_dif.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/upload_dsym.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/commands/upload_proguard.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/config.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/constants.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/main.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/android.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/args.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/auth_token/auth_token_impl.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/auth_token/error.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/auth_token/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/auth_token/org_auth_token.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/auth_token/redacting.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/auth_token/test.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/auth_token/user_auth_token.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/build/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/build/normalize.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/build/validation.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/build_vcs.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/chunks/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/chunks/options.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/chunks/types.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/chunks/upload.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/ci.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/cordova.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/dif.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/dif_upload/error.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/dif_upload/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/event.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/file_search.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/file_upload.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/formatting.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/fs.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/http.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/logging.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/non_empty.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/odiff/binary.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/odiff/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/odiff/server.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/progress.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/proguard/mapping.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/proguard/mod.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/proguard/upload.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/releases.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/retry.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__generate_patch_default_twenty.snap +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__generate_patch_ignore_missing.snap +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__generate_patch_set_base.snap +0 -0
- {sentry_cli-3.6.2 → 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.2 → sentry_cli-3.7.0}/src/utils/snapshots/sentry_cli__utils__vcs__tests__get_commits_from_git.snap +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/source_bundle.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/sourcemaps/inject.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/sourcemaps.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/system.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/ui.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/update.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/value_parsers.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/vcs.rs +0 -0
- {sentry_cli-3.6.2 → sentry_cli-3.7.0}/src/utils/xcode.rs +0 -0
|
@@ -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()?;
|
|
@@ -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,
|
|
@@ -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();
|