sentry-cli 2.32.2__tar.gz → 2.33.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-2.32.2 → sentry_cli-2.33.0}/Cargo.lock +32 -172
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/Cargo.toml +1 -1
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/PKG-INFO +1 -1
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/sentry_cli.egg-info/PKG-INFO +1 -1
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/errors/api_error.rs +1 -1
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/mod.rs +5 -5
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/sourcemaps/explain.rs +2 -2
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/config.rs +2 -2
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/args.rs +7 -4
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/auth_token/test.rs +10 -4
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/auth_token/user_auth_token.rs +6 -1
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/chunks.rs +1 -1
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/dif_upload.rs +2 -2
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/file_upload.rs +3 -3
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/http.rs +1 -1
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/system.rs +1 -1
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/LICENSE +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/MANIFEST.in +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/README.md +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/build.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/pyproject.toml +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/sentry_cli.egg-info/SOURCES.txt +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/sentry_cli.egg-info/dependency_links.txt +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/sentry_cli.egg-info/top_level.txt +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/setup.cfg +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/setup.py +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/connection_manager.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/data_types/chunking/artifact.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/data_types/chunking/compression.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/data_types/chunking/dif.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/data_types/chunking/file_state.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/data_types/chunking/hash_algorithm.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/data_types/chunking/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/data_types/chunking/upload/capability.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/data_types/chunking/upload/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/data_types/chunking/upload/options.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/data_types/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/encoding.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/envelopes_api.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/errors/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/errors/sentry_error.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/api/pagination.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/bashsupport.sh +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/bash_hook.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/debug_files/bundle_jvm.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/debug_files/bundle_sources.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/debug_files/check.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/debug_files/find.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/debug_files/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/debug_files/print_sources.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/debug_files/upload.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/deploys/list.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/deploys/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/deploys/new.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/derive_parser.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/events/list.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/events/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/files/delete.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/files/list.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/files/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/files/upload.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/info.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/issues/list.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/issues/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/issues/mute.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/issues/resolve.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/issues/unresolve.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/login.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/monitors/list.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/monitors/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/monitors/run.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/organizations/list.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/organizations/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/projects/list.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/projects/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/react_native/appcenter.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/react_native/gradle.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/react_native/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/react_native/xcode.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/releases/archive.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/releases/delete.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/releases/finalize.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/releases/info.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/releases/list.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/releases/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/releases/new.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/releases/propose_version.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/releases/restore.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/releases/set_commits.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/repos/list.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/repos/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/send_envelope.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/send_event.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/send_metric/common_args.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/send_metric/distribution.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/send_metric/gauge.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/send_metric/increment.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/send_metric/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/send_metric/set.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/sourcemaps/inject.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/sourcemaps/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/sourcemaps/resolve.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/sourcemaps/upload.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/uninstall.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/update.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/upload_dif.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/upload_dsym.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/commands/upload_proguard.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/constants.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/main.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/android.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/appcenter.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/auth_token/auth_token_impl.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/auth_token/error.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/auth_token/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/auth_token/org_auth_token.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/cordova.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/dif.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/event.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/file_search.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/formatting.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/fs.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/logging.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/metrics.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/mod.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/progress.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/releases.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/retry.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_default_twenty.snap +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_ignore_missing.snap +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_base.snap +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_previous_commit.snap +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/snapshots/sentry_cli__utils__vcs__get_commits_from_git.snap +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/sourcemaps/inject.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/sourcemaps.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/ui.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/update.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/value_parsers.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/vcs.rs +0 -0
- {sentry_cli-2.32.2 → sentry_cli-2.33.0}/src/utils/xcode.rs +0 -0
|
@@ -49,18 +49,6 @@ dependencies = [
|
|
|
49
49
|
"version_check",
|
|
50
50
|
]
|
|
51
51
|
|
|
52
|
-
[[package]]
|
|
53
|
-
name = "ahash"
|
|
54
|
-
version = "0.8.11"
|
|
55
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
56
|
-
checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
|
|
57
|
-
dependencies = [
|
|
58
|
-
"cfg-if",
|
|
59
|
-
"once_cell",
|
|
60
|
-
"version_check",
|
|
61
|
-
"zerocopy",
|
|
62
|
-
]
|
|
63
|
-
|
|
64
52
|
[[package]]
|
|
65
53
|
name = "aho-corasick"
|
|
66
54
|
version = "1.1.3"
|
|
@@ -154,15 +142,6 @@ dependencies = [
|
|
|
154
142
|
"regex",
|
|
155
143
|
]
|
|
156
144
|
|
|
157
|
-
[[package]]
|
|
158
|
-
name = "arbitrary"
|
|
159
|
-
version = "1.3.2"
|
|
160
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
-
checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110"
|
|
162
|
-
dependencies = [
|
|
163
|
-
"derive_arbitrary",
|
|
164
|
-
]
|
|
165
|
-
|
|
166
145
|
[[package]]
|
|
167
146
|
name = "arrayvec"
|
|
168
147
|
version = "0.7.4"
|
|
@@ -650,17 +629,6 @@ dependencies = [
|
|
|
650
629
|
"powerfmt",
|
|
651
630
|
]
|
|
652
631
|
|
|
653
|
-
[[package]]
|
|
654
|
-
name = "derive_arbitrary"
|
|
655
|
-
version = "1.3.2"
|
|
656
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
657
|
-
checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611"
|
|
658
|
-
dependencies = [
|
|
659
|
-
"proc-macro2",
|
|
660
|
-
"quote",
|
|
661
|
-
"syn 2.0.68",
|
|
662
|
-
]
|
|
663
|
-
|
|
664
632
|
[[package]]
|
|
665
633
|
name = "difflib"
|
|
666
634
|
version = "0.4.0"
|
|
@@ -719,17 +687,6 @@ dependencies = [
|
|
|
719
687
|
"winapi 0.3.9",
|
|
720
688
|
]
|
|
721
689
|
|
|
722
|
-
[[package]]
|
|
723
|
-
name = "displaydoc"
|
|
724
|
-
version = "0.2.5"
|
|
725
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
726
|
-
checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
|
|
727
|
-
dependencies = [
|
|
728
|
-
"proc-macro2",
|
|
729
|
-
"quote",
|
|
730
|
-
"syn 2.0.68",
|
|
731
|
-
]
|
|
732
|
-
|
|
733
690
|
[[package]]
|
|
734
691
|
name = "dlv-list"
|
|
735
692
|
version = "0.3.0"
|
|
@@ -1046,20 +1003,20 @@ dependencies = [
|
|
|
1046
1003
|
|
|
1047
1004
|
[[package]]
|
|
1048
1005
|
name = "gimli"
|
|
1049
|
-
version = "0.
|
|
1006
|
+
version = "0.28.1"
|
|
1050
1007
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1051
|
-
checksum = "
|
|
1052
|
-
|
|
1053
|
-
[[package]]
|
|
1054
|
-
name = "gimli"
|
|
1055
|
-
version = "0.30.0"
|
|
1056
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1057
|
-
checksum = "e2e1d97fbe9722ba9bbd0c97051c2956e726562b61f86a25a4360398a40edfc9"
|
|
1008
|
+
checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253"
|
|
1058
1009
|
dependencies = [
|
|
1059
1010
|
"fallible-iterator 0.3.0",
|
|
1060
1011
|
"stable_deref_trait",
|
|
1061
1012
|
]
|
|
1062
1013
|
|
|
1014
|
+
[[package]]
|
|
1015
|
+
name = "gimli"
|
|
1016
|
+
version = "0.29.0"
|
|
1017
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1018
|
+
checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd"
|
|
1019
|
+
|
|
1063
1020
|
[[package]]
|
|
1064
1021
|
name = "git2"
|
|
1065
1022
|
version = "0.18.3"
|
|
@@ -1094,13 +1051,13 @@ dependencies = [
|
|
|
1094
1051
|
|
|
1095
1052
|
[[package]]
|
|
1096
1053
|
name = "goblin"
|
|
1097
|
-
version = "0.
|
|
1054
|
+
version = "0.7.1"
|
|
1098
1055
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1099
|
-
checksum = "
|
|
1056
|
+
checksum = "f27c1b4369c2cd341b5de549380158b105a04c331be5db9110eef7b6d2742134"
|
|
1100
1057
|
dependencies = [
|
|
1101
1058
|
"log",
|
|
1102
1059
|
"plain",
|
|
1103
|
-
"scroll 0.
|
|
1060
|
+
"scroll 0.11.0",
|
|
1104
1061
|
]
|
|
1105
1062
|
|
|
1106
1063
|
[[package]]
|
|
@@ -1109,7 +1066,7 @@ version = "0.12.3"
|
|
|
1109
1066
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1110
1067
|
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
|
|
1111
1068
|
dependencies = [
|
|
1112
|
-
"ahash
|
|
1069
|
+
"ahash",
|
|
1113
1070
|
]
|
|
1114
1071
|
|
|
1115
1072
|
[[package]]
|
|
@@ -1117,10 +1074,6 @@ name = "hashbrown"
|
|
|
1117
1074
|
version = "0.14.5"
|
|
1118
1075
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1119
1076
|
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
|
|
1120
|
-
dependencies = [
|
|
1121
|
-
"ahash 0.8.11",
|
|
1122
|
-
"serde",
|
|
1123
|
-
]
|
|
1124
1077
|
|
|
1125
1078
|
[[package]]
|
|
1126
1079
|
name = "heck"
|
|
@@ -1266,7 +1219,6 @@ checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26"
|
|
|
1266
1219
|
dependencies = [
|
|
1267
1220
|
"equivalent",
|
|
1268
1221
|
"hashbrown 0.14.5",
|
|
1269
|
-
"serde",
|
|
1270
1222
|
]
|
|
1271
1223
|
|
|
1272
1224
|
[[package]]
|
|
@@ -1464,12 +1416,6 @@ dependencies = [
|
|
|
1464
1416
|
"scopeguard",
|
|
1465
1417
|
]
|
|
1466
1418
|
|
|
1467
|
-
[[package]]
|
|
1468
|
-
name = "lockfree-object-pool"
|
|
1469
|
-
version = "0.1.6"
|
|
1470
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1471
|
-
checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e"
|
|
1472
|
-
|
|
1473
1419
|
[[package]]
|
|
1474
1420
|
name = "log"
|
|
1475
1421
|
version = "0.4.22"
|
|
@@ -2312,14 +2258,8 @@ name = "scroll"
|
|
|
2312
2258
|
version = "0.11.0"
|
|
2313
2259
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2314
2260
|
checksum = "04c565b551bafbef4157586fa379538366e4385d42082f255bfd96e4fe8519da"
|
|
2315
|
-
|
|
2316
|
-
[[package]]
|
|
2317
|
-
name = "scroll"
|
|
2318
|
-
version = "0.12.0"
|
|
2319
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2320
|
-
checksum = "6ab8598aa408498679922eff7fa985c25d58a90771bd6be794434c5277eab1a6"
|
|
2321
2261
|
dependencies = [
|
|
2322
|
-
"scroll_derive 0.
|
|
2262
|
+
"scroll_derive 0.11.1",
|
|
2323
2263
|
]
|
|
2324
2264
|
|
|
2325
2265
|
[[package]]
|
|
@@ -2335,9 +2275,9 @@ dependencies = [
|
|
|
2335
2275
|
|
|
2336
2276
|
[[package]]
|
|
2337
2277
|
name = "scroll_derive"
|
|
2338
|
-
version = "0.
|
|
2278
|
+
version = "0.11.1"
|
|
2339
2279
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2340
|
-
checksum = "
|
|
2280
|
+
checksum = "1db149f81d46d2deba7cd3c50772474707729550221e69588478ebf9ada425ae"
|
|
2341
2281
|
dependencies = [
|
|
2342
2282
|
"proc-macro2",
|
|
2343
2283
|
"quote",
|
|
@@ -2413,7 +2353,7 @@ dependencies = [
|
|
|
2413
2353
|
|
|
2414
2354
|
[[package]]
|
|
2415
2355
|
name = "sentry-cli"
|
|
2416
|
-
version = "2.
|
|
2356
|
+
version = "2.33.0"
|
|
2417
2357
|
dependencies = [
|
|
2418
2358
|
"anyhow",
|
|
2419
2359
|
"anylog",
|
|
@@ -2484,7 +2424,7 @@ dependencies = [
|
|
|
2484
2424
|
"walkdir",
|
|
2485
2425
|
"which",
|
|
2486
2426
|
"winapi 0.3.9",
|
|
2487
|
-
"zip
|
|
2427
|
+
"zip",
|
|
2488
2428
|
]
|
|
2489
2429
|
|
|
2490
2430
|
[[package]]
|
|
@@ -2650,12 +2590,6 @@ dependencies = [
|
|
|
2650
2590
|
"outref",
|
|
2651
2591
|
]
|
|
2652
2592
|
|
|
2653
|
-
[[package]]
|
|
2654
|
-
name = "simd-adler32"
|
|
2655
|
-
version = "0.3.7"
|
|
2656
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2657
|
-
checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
|
|
2658
|
-
|
|
2659
2593
|
[[package]]
|
|
2660
2594
|
name = "similar"
|
|
2661
2595
|
version = "2.5.0"
|
|
@@ -2776,9 +2710,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
|
|
2776
2710
|
|
|
2777
2711
|
[[package]]
|
|
2778
2712
|
name = "symbolic"
|
|
2779
|
-
version = "12.
|
|
2713
|
+
version = "12.8.0"
|
|
2780
2714
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2781
|
-
checksum = "
|
|
2715
|
+
checksum = "05ec4f53c56d7ee8809c2322925d362e193bcc7bbe7e777a3304b34ea7e85a36"
|
|
2782
2716
|
dependencies = [
|
|
2783
2717
|
"symbolic-common",
|
|
2784
2718
|
"symbolic-debuginfo",
|
|
@@ -2801,9 +2735,9 @@ dependencies = [
|
|
|
2801
2735
|
|
|
2802
2736
|
[[package]]
|
|
2803
2737
|
name = "symbolic-debuginfo"
|
|
2804
|
-
version = "12.
|
|
2738
|
+
version = "12.8.0"
|
|
2805
2739
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2806
|
-
checksum = "
|
|
2740
|
+
checksum = "eb52777be67777947c5a159f1b6e8bfe4473d91fad7e5d4aff85ee4d3963cc04"
|
|
2807
2741
|
dependencies = [
|
|
2808
2742
|
"debugid",
|
|
2809
2743
|
"dmsort",
|
|
@@ -2811,7 +2745,7 @@ dependencies = [
|
|
|
2811
2745
|
"elsa",
|
|
2812
2746
|
"fallible-iterator 0.3.0",
|
|
2813
2747
|
"flate2",
|
|
2814
|
-
"gimli 0.
|
|
2748
|
+
"gimli 0.28.1",
|
|
2815
2749
|
"goblin",
|
|
2816
2750
|
"lazy_static",
|
|
2817
2751
|
"nom",
|
|
@@ -2820,7 +2754,7 @@ dependencies = [
|
|
|
2820
2754
|
"parking_lot",
|
|
2821
2755
|
"pdb-addr2line",
|
|
2822
2756
|
"regex",
|
|
2823
|
-
"scroll 0.
|
|
2757
|
+
"scroll 0.11.0",
|
|
2824
2758
|
"serde",
|
|
2825
2759
|
"serde_json",
|
|
2826
2760
|
"smallvec",
|
|
@@ -2828,15 +2762,14 @@ dependencies = [
|
|
|
2828
2762
|
"symbolic-ppdb",
|
|
2829
2763
|
"thiserror",
|
|
2830
2764
|
"wasmparser",
|
|
2831
|
-
"zip
|
|
2832
|
-
"zstd 0.13.1",
|
|
2765
|
+
"zip",
|
|
2833
2766
|
]
|
|
2834
2767
|
|
|
2835
2768
|
[[package]]
|
|
2836
2769
|
name = "symbolic-il2cpp"
|
|
2837
|
-
version = "12.
|
|
2770
|
+
version = "12.8.0"
|
|
2838
2771
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2839
|
-
checksum = "
|
|
2772
|
+
checksum = "2f8d453d3c853febd7dbfcb9a7ff18a94aa0d64f7a6476f8f453e88b01ee33d9"
|
|
2840
2773
|
dependencies = [
|
|
2841
2774
|
"indexmap",
|
|
2842
2775
|
"serde_json",
|
|
@@ -2862,9 +2795,9 @@ dependencies = [
|
|
|
2862
2795
|
|
|
2863
2796
|
[[package]]
|
|
2864
2797
|
name = "symbolic-symcache"
|
|
2865
|
-
version = "12.
|
|
2798
|
+
version = "12.8.0"
|
|
2866
2799
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2867
|
-
checksum = "
|
|
2800
|
+
checksum = "9e5bddf351855de48a9b9deb1ef1a755e228ee2902fbeb8ef255e2522afd6dae"
|
|
2868
2801
|
dependencies = [
|
|
2869
2802
|
"indexmap",
|
|
2870
2803
|
"symbolic-common",
|
|
@@ -3275,16 +3208,12 @@ checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
|
|
|
3275
3208
|
|
|
3276
3209
|
[[package]]
|
|
3277
3210
|
name = "wasmparser"
|
|
3278
|
-
version = "0.
|
|
3211
|
+
version = "0.118.2"
|
|
3279
3212
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3280
|
-
checksum = "
|
|
3213
|
+
checksum = "77f1154f1ab868e2a01d9834a805faca7bf8b50d041b4ca714d005d0dab1c50c"
|
|
3281
3214
|
dependencies = [
|
|
3282
|
-
"ahash 0.8.11",
|
|
3283
|
-
"bitflags 2.6.0",
|
|
3284
|
-
"hashbrown 0.14.5",
|
|
3285
3215
|
"indexmap",
|
|
3286
3216
|
"semver 1.0.23",
|
|
3287
|
-
"serde",
|
|
3288
3217
|
]
|
|
3289
3218
|
|
|
3290
3219
|
[[package]]
|
|
@@ -3576,26 +3505,6 @@ dependencies = [
|
|
|
3576
3505
|
"memchr",
|
|
3577
3506
|
]
|
|
3578
3507
|
|
|
3579
|
-
[[package]]
|
|
3580
|
-
name = "zerocopy"
|
|
3581
|
-
version = "0.7.35"
|
|
3582
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3583
|
-
checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
|
|
3584
|
-
dependencies = [
|
|
3585
|
-
"zerocopy-derive",
|
|
3586
|
-
]
|
|
3587
|
-
|
|
3588
|
-
[[package]]
|
|
3589
|
-
name = "zerocopy-derive"
|
|
3590
|
-
version = "0.7.35"
|
|
3591
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3592
|
-
checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
|
|
3593
|
-
dependencies = [
|
|
3594
|
-
"proc-macro2",
|
|
3595
|
-
"quote",
|
|
3596
|
-
"syn 2.0.68",
|
|
3597
|
-
]
|
|
3598
|
-
|
|
3599
3508
|
[[package]]
|
|
3600
3509
|
name = "zip"
|
|
3601
3510
|
version = "0.6.6"
|
|
@@ -3613,38 +3522,7 @@ dependencies = [
|
|
|
3613
3522
|
"pbkdf2",
|
|
3614
3523
|
"sha1",
|
|
3615
3524
|
"time",
|
|
3616
|
-
"zstd
|
|
3617
|
-
]
|
|
3618
|
-
|
|
3619
|
-
[[package]]
|
|
3620
|
-
name = "zip"
|
|
3621
|
-
version = "2.1.1"
|
|
3622
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3623
|
-
checksum = "1dd56a4d5921bc2f99947ac5b3abe5f510b1be7376fdc5e9fce4a23c6a93e87c"
|
|
3624
|
-
dependencies = [
|
|
3625
|
-
"arbitrary",
|
|
3626
|
-
"crc32fast",
|
|
3627
|
-
"crossbeam-utils",
|
|
3628
|
-
"displaydoc",
|
|
3629
|
-
"flate2",
|
|
3630
|
-
"indexmap",
|
|
3631
|
-
"memchr",
|
|
3632
|
-
"thiserror",
|
|
3633
|
-
"zopfli",
|
|
3634
|
-
]
|
|
3635
|
-
|
|
3636
|
-
[[package]]
|
|
3637
|
-
name = "zopfli"
|
|
3638
|
-
version = "0.8.1"
|
|
3639
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3640
|
-
checksum = "e5019f391bac5cf252e93bbcc53d039ffd62c7bfb7c150414d61369afe57e946"
|
|
3641
|
-
dependencies = [
|
|
3642
|
-
"bumpalo",
|
|
3643
|
-
"crc32fast",
|
|
3644
|
-
"lockfree-object-pool",
|
|
3645
|
-
"log",
|
|
3646
|
-
"once_cell",
|
|
3647
|
-
"simd-adler32",
|
|
3525
|
+
"zstd",
|
|
3648
3526
|
]
|
|
3649
3527
|
|
|
3650
3528
|
[[package]]
|
|
@@ -3653,16 +3531,7 @@ version = "0.11.2+zstd.1.5.2"
|
|
|
3653
3531
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3654
3532
|
checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4"
|
|
3655
3533
|
dependencies = [
|
|
3656
|
-
"zstd-safe
|
|
3657
|
-
]
|
|
3658
|
-
|
|
3659
|
-
[[package]]
|
|
3660
|
-
name = "zstd"
|
|
3661
|
-
version = "0.13.1"
|
|
3662
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3663
|
-
checksum = "2d789b1514203a1120ad2429eae43a7bd32b90976a7bb8a05f7ec02fa88cc23a"
|
|
3664
|
-
dependencies = [
|
|
3665
|
-
"zstd-safe 7.1.0",
|
|
3534
|
+
"zstd-safe",
|
|
3666
3535
|
]
|
|
3667
3536
|
|
|
3668
3537
|
[[package]]
|
|
@@ -3675,15 +3544,6 @@ dependencies = [
|
|
|
3675
3544
|
"zstd-sys",
|
|
3676
3545
|
]
|
|
3677
3546
|
|
|
3678
|
-
[[package]]
|
|
3679
|
-
name = "zstd-safe"
|
|
3680
|
-
version = "7.1.0"
|
|
3681
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3682
|
-
checksum = "1cd99b45c6bc03a018c8b8a86025678c87e55526064e38f9df301989dce7ec0a"
|
|
3683
|
-
dependencies = [
|
|
3684
|
-
"zstd-sys",
|
|
3685
|
-
]
|
|
3686
|
-
|
|
3687
3547
|
[[package]]
|
|
3688
3548
|
name = "zstd-sys"
|
|
3689
3549
|
version = "2.0.11+zstd.1.5.6"
|
|
@@ -24,7 +24,7 @@ pub(in crate::api) enum ApiErrorKind {
|
|
|
24
24
|
OrganizationNotFound,
|
|
25
25
|
#[error("resource not found")]
|
|
26
26
|
ResourceNotFound,
|
|
27
|
-
#[error("Project not found. Please check that you entered the project and organization slugs correctly.")]
|
|
27
|
+
#[error("Project not found. Please check that you entered the project and organization IDs or slugs correctly.")]
|
|
28
28
|
ProjectNotFound,
|
|
29
29
|
#[error("release not found")]
|
|
30
30
|
ReleaseNotFound,
|
|
@@ -454,7 +454,7 @@ impl<'a> AuthenticatedApi<'a> {
|
|
|
454
454
|
self.api.put(path, body)
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
///
|
|
457
|
+
/// Convenience method to call self.api.request.
|
|
458
458
|
fn request(&self, method: Method, url: &str) -> ApiResult<ApiRequest> {
|
|
459
459
|
self.api.request(method, url, None)
|
|
460
460
|
}
|
|
@@ -496,15 +496,15 @@ impl<'a> AuthenticatedApi<'a> {
|
|
|
496
496
|
)
|
|
497
497
|
};
|
|
498
498
|
|
|
499
|
-
let mut
|
|
499
|
+
let mut checksums_qs = String::new();
|
|
500
500
|
for checksum in checksums.iter() {
|
|
501
|
-
|
|
501
|
+
checksums_qs.push_str(&format!("&checksum={}", QueryArg(checksum)));
|
|
502
502
|
}
|
|
503
503
|
// We have a 16kb buffer for reach request configured in nginx,
|
|
504
504
|
// so do not even bother trying if it's too long.
|
|
505
505
|
// (16_384 limit still leaves us with 384 bytes for the url itself).
|
|
506
|
-
if !
|
|
507
|
-
path.push_str(&
|
|
506
|
+
if !checksums_qs.is_empty() && checksums_qs.len() <= 16_000 {
|
|
507
|
+
path.push_str(&checksums_qs);
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
let resp = self.get(&path)?;
|
|
@@ -135,7 +135,7 @@ fn fetch_release_artifacts(org: &str, project: &str, release: &str) -> Result<Ve
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
// Try to find an artifact which matches the path part of the url extracted from the stacktrace frame,
|
|
138
|
-
// prefixed with the default `~/`, which is a "glob-like" pattern for
|
|
138
|
+
// prefixed with the default `~/`, which is a "glob-like" pattern for matching any hostname.
|
|
139
139
|
fn find_matching_artifact(artifacts: &[Artifact], path: &str) -> Result<Artifact> {
|
|
140
140
|
let full_match = artifacts.iter().find(|a| a.name == path);
|
|
141
141
|
let partial_match = artifacts
|
|
@@ -348,7 +348,7 @@ fn resolve_sourcemap_url(abs_path: &str, sourcemap_location: &str) -> Result<Str
|
|
|
348
348
|
.map_err(|e| e.into())
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
// Unify url to be prefixed with the default `~/`, which is a "glob-like" pattern for
|
|
351
|
+
// Unify url to be prefixed with the default `~/`, which is a "glob-like" pattern for matching any hostname.
|
|
352
352
|
//
|
|
353
353
|
// We only need the `pathname` portion of the url, so if it's absolute, just extract it.
|
|
354
354
|
// If it's relative however, parse any random url (example.com) and join it with our relative url,
|
|
@@ -339,7 +339,7 @@ impl Config {
|
|
|
339
339
|
.get_from(Some("defaults"), "org")
|
|
340
340
|
.map(str::to_owned)
|
|
341
341
|
.ok_or_else(|| {
|
|
342
|
-
format_err!("An organization slug is required (provide with --org)")
|
|
342
|
+
format_err!("An organization ID or slug is required (provide with --org)")
|
|
343
343
|
}),
|
|
344
344
|
(None, Some(cli_org)) => Ok(cli_org),
|
|
345
345
|
(Some(token_org), None) => Ok(token_org.to_string()),
|
|
@@ -407,7 +407,7 @@ impl Config {
|
|
|
407
407
|
.get_from(Some("defaults"), "project")
|
|
408
408
|
.map(str::to_owned)
|
|
409
409
|
})
|
|
410
|
-
.ok_or_else(|| format_err!("A project slug is required (provide with --project)"))
|
|
410
|
+
.ok_or_else(|| format_err!("A project ID or slug is required (provide with --project)"))
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
/// Return the default pipeline env.
|
|
@@ -4,7 +4,10 @@ use clap::{Arg, ArgAction, Command};
|
|
|
4
4
|
|
|
5
5
|
fn validate_org(v: &str) -> Result<String, String> {
|
|
6
6
|
if v.contains('/') || v == "." || v == ".." || v.contains(' ') {
|
|
7
|
-
Err(
|
|
7
|
+
Err(
|
|
8
|
+
"Invalid value for organization. Use the URL slug or the ID and not the name!"
|
|
9
|
+
.to_string(),
|
|
10
|
+
)
|
|
8
11
|
} else {
|
|
9
12
|
Ok(v.to_owned())
|
|
10
13
|
}
|
|
@@ -19,7 +22,7 @@ pub fn validate_project(v: &str) -> Result<String, String> {
|
|
|
19
22
|
|| v.contains('\t')
|
|
20
23
|
|| v.contains('\r')
|
|
21
24
|
{
|
|
22
|
-
Err("Invalid value for project. Use the URL slug and not the name!".to_string())
|
|
25
|
+
Err("Invalid value for project. Use the URL slug or the ID and not the name!".to_string())
|
|
23
26
|
} else {
|
|
24
27
|
Ok(v.to_owned())
|
|
25
28
|
}
|
|
@@ -90,7 +93,7 @@ impl<'a: 'b, 'b> ArgExt for Command {
|
|
|
90
93
|
.short('o')
|
|
91
94
|
.value_parser(validate_org)
|
|
92
95
|
.global(true)
|
|
93
|
-
.help("The organization slug"),
|
|
96
|
+
.help("The organization ID or slug."),
|
|
94
97
|
)
|
|
95
98
|
}
|
|
96
99
|
|
|
@@ -107,7 +110,7 @@ impl<'a: 'b, 'b> ArgExt for Command {
|
|
|
107
110
|
} else {
|
|
108
111
|
ArgAction::Set
|
|
109
112
|
})
|
|
110
|
-
.help("The project slug."),
|
|
113
|
+
.help("The project ID or slug."),
|
|
111
114
|
)
|
|
112
115
|
}
|
|
113
116
|
|
|
@@ -67,10 +67,11 @@ fn test_valid_org_auth_token_missing_url() {
|
|
|
67
67
|
|
|
68
68
|
// User auth token tests ----------------------------------------------------
|
|
69
69
|
|
|
70
|
-
#[
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
#[rstest]
|
|
71
|
+
#[case::no_prefix("c66aee1348a6e7a0993145d71cf8fa529ed09ee13dd5177b5f692e9f6ca38c30")]
|
|
72
|
+
#[case::with_prefix("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")]
|
|
73
|
+
fn test_valid_user_auth_token(#[case] token_str: &'static str) {
|
|
74
|
+
let good_token = String::from(token_str);
|
|
74
75
|
|
|
75
76
|
testing_logger::setup();
|
|
76
77
|
let token = AuthToken::from(good_token.clone());
|
|
@@ -138,6 +139,11 @@ fn test_valid_user_auth_token() {
|
|
|
138
139
|
#[case::invalid_hex("c66aee1348a6g7a0993145d71cf8fa529ed09ee13dd5177b5f692e9f6ca38c30")]
|
|
139
140
|
#[case::sixty_three_characters("c66aee1348a6e7a0993145d71cf8fa529ed09ee13dd5177b5f692e9f6ca38c3")]
|
|
140
141
|
#[case::sixty_five_characters("c66aee1348a6e7a0993145d71cf8fa529ed09ee13dd5177b5f692e9f6ca38c300")]
|
|
142
|
+
#[case::prefix_only("sntryu_")]
|
|
143
|
+
#[case::prefix_sixty_three_characters(
|
|
144
|
+
"sntryu_c66aee1348a6e7a0993145d71cf8fa529ed09ee13dd5177b5f692e9f6ca38c3"
|
|
145
|
+
)]
|
|
146
|
+
#[case::wrong_prefix("sntryt_c66aee1348a6e7a0993145d71cf8fa529ed09ee13dd5177b5f692e9f6ca38c30")]
|
|
141
147
|
fn test_unknown_auth_token(#[case] token_str: &'static str) {
|
|
142
148
|
testing_logger::setup();
|
|
143
149
|
let token = AuthToken::from(token_str.to_owned());
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
use super::{AuthTokenParseError, Result};
|
|
2
2
|
|
|
3
3
|
const USER_TOKEN_BYTES: usize = 32;
|
|
4
|
+
const USER_TOKEN_PREFIX: &str = "sntryu_";
|
|
4
5
|
|
|
5
6
|
/// Represents a valid User Auth Token.
|
|
6
7
|
#[derive(Debug, Clone)]
|
|
@@ -9,7 +10,11 @@ pub struct UserAuthToken(String);
|
|
|
9
10
|
impl UserAuthToken {
|
|
10
11
|
/// Constructs a new UserAuthToken from a string. Returns an error if the string is not a valid user auth token.
|
|
11
12
|
fn construct_from_string(auth_string: String) -> Result<Self> {
|
|
12
|
-
let
|
|
13
|
+
let secret_portion = auth_string
|
|
14
|
+
.strip_prefix(USER_TOKEN_PREFIX)
|
|
15
|
+
.unwrap_or(&auth_string);
|
|
16
|
+
|
|
17
|
+
let bytes = data_encoding::HEXLOWER_PERMISSIVE.decode(secret_portion.as_bytes());
|
|
13
18
|
|
|
14
19
|
if bytes.is_ok() && bytes.unwrap().len() == USER_TOKEN_BYTES {
|
|
15
20
|
Ok(UserAuthToken(auth_string))
|
|
@@ -188,7 +188,7 @@ pub fn upload_chunks(
|
|
|
188
188
|
// The upload is executed in parallel batches. Each batch aggregates objects
|
|
189
189
|
// until it exceeds the maximum size configured in ChunkUploadOptions. We
|
|
190
190
|
// keep track of the overall progress and potential errors. If an error
|
|
191
|
-
//
|
|
191
|
+
// occurs, all subsequent requests will be cancelled and the error returned.
|
|
192
192
|
// Otherwise, the after every successful update, the overall progress is
|
|
193
193
|
// updated and rendered.
|
|
194
194
|
let batches: Vec<_> = chunks
|
|
@@ -407,7 +407,7 @@ impl<'a> DifSource<'a> {
|
|
|
407
407
|
/// file name.
|
|
408
408
|
fn get_relative_fs(base: &Path, path: &Path) -> Option<ByteView<'static>> {
|
|
409
409
|
// Use parent() to get to the directory and then move relative from
|
|
410
|
-
// there. ByteView will internally
|
|
410
|
+
// there. ByteView will internally canonicalize the path and resolve
|
|
411
411
|
// symlinks.
|
|
412
412
|
base.parent()
|
|
413
413
|
.and_then(|p| ByteView::open(p.join(path)).ok())
|
|
@@ -896,7 +896,7 @@ fn collect_object_dif<'a>(
|
|
|
896
896
|
|
|
897
897
|
// Invoke logic to retrieve attachments specific to the kind
|
|
898
898
|
// of object file. These are used for processing. Since only
|
|
899
|
-
// dSYMs
|
|
899
|
+
// dSYMs require processing currently, all other kinds are
|
|
900
900
|
// skipped.
|
|
901
901
|
let attachments = match object.file_format() {
|
|
902
902
|
FileFormat::MachO => find_uuid_plists(&object, &mut source),
|
|
@@ -118,7 +118,7 @@ pub struct SourceFile {
|
|
|
118
118
|
pub path: PathBuf,
|
|
119
119
|
pub contents: Vec<u8>,
|
|
120
120
|
pub ty: SourceFileType,
|
|
121
|
-
/// A map of headers
|
|
121
|
+
/// A map of headers attached to the source file.
|
|
122
122
|
///
|
|
123
123
|
/// Headers that `sentry-cli` knows about are
|
|
124
124
|
/// * "debug-id" for a file's debug id
|
|
@@ -199,7 +199,7 @@ impl<'a> FileUpload<'a> {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
// Do not permit uploads of more than 20k files if the server does not
|
|
202
|
-
// support artifact bundles. This is a
|
|
202
|
+
// support artifact bundles. This is a temporary downside protection to
|
|
203
203
|
// protect users from uploading more sources than we support.
|
|
204
204
|
if self.files.len() > 20_000 {
|
|
205
205
|
bail!(
|
|
@@ -673,7 +673,7 @@ mod tests {
|
|
|
673
673
|
let hash = Sha1::from(buf);
|
|
674
674
|
assert_eq!(
|
|
675
675
|
hash.digest().to_string(),
|
|
676
|
-
"
|
|
676
|
+
"d38fb9915de70eec2aa2d0c380b344d89ef540f0"
|
|
677
677
|
);
|
|
678
678
|
}
|
|
679
679
|
}
|
|
@@ -63,7 +63,7 @@ pub fn parse_link_header(s: &str) -> Vec<HashMap<&str, &str>> {
|
|
|
63
63
|
rv
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
///
|
|
66
|
+
/// Checks whether an url starts with http:// or https:// prefix
|
|
67
67
|
pub fn is_absolute_url(url: &str) -> bool {
|
|
68
68
|
url.starts_with("http://") || url.starts_with("https://")
|
|
69
69
|
}
|
|
@@ -146,7 +146,7 @@ pub fn load_dotenv() -> DotenvResult<()> {
|
|
|
146
146
|
}
|
|
147
147
|
.map_or_else(
|
|
148
148
|
|error| {
|
|
149
|
-
// We only
|
|
149
|
+
// We only propagate errors if the .env file was found and failed to load.
|
|
150
150
|
if error.not_found() {
|
|
151
151
|
Ok(())
|
|
152
152
|
} else {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|