sentry-cli 2.20.6__tar.gz → 2.21.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.20.6 → sentry_cli-2.21.0}/Cargo.lock +77 -82
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/Cargo.toml +3 -3
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/PKG-INFO +1 -1
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/sentry_cli.egg-info/PKG-INFO +1 -1
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/debug_files/bundle_jvm.rs +20 -11
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/debug_files/upload.rs +23 -2
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/files/upload.rs +30 -4
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/login.rs +15 -4
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/react_native/appcenter.rs +22 -2
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/react_native/gradle.rs +44 -12
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/react_native/xcode.rs +243 -51
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/sourcemaps/upload.rs +38 -1
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/dif_upload.rs +11 -1
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/file_upload.rs +58 -30
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/sourcemaps.rs +180 -73
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/LICENSE +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/MANIFEST.in +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/README.md +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/build.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/pyproject.toml +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/sentry_cli.egg-info/SOURCES.txt +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/sentry_cli.egg-info/dependency_links.txt +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/sentry_cli.egg-info/top_level.txt +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/setup.cfg +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/setup.py +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/api.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/bashsupport.sh +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/bash_hook.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/debug_files/bundle_sources.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/debug_files/check.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/debug_files/find.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/debug_files/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/debug_files/print_sources.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/deploys/list.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/deploys/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/deploys/new.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/events/list.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/events/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/files/delete.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/files/list.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/files/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/info.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/issues/list.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/issues/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/issues/mute.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/issues/resolve.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/issues/unresolve.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/monitors/list.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/monitors/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/monitors/run.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/organizations/list.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/organizations/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/projects/list.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/projects/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/react_native/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/releases/archive.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/releases/delete.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/releases/finalize.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/releases/info.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/releases/list.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/releases/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/releases/new.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/releases/propose_version.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/releases/restore.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/releases/set_commits.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/repos/list.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/repos/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/send_envelope.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/send_event.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/sourcemaps/explain.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/sourcemaps/inject.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/sourcemaps/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/sourcemaps/resolve.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/uninstall.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/update.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/upload_dif.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/upload_dsym.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/commands/upload_proguard.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/config.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/constants.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/main.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/android.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/appcenter.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/args.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/chunks.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/codepush.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/cordova.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/dif.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/enc.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/event.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/file_search.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/formatting.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/fs.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/http.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/logging.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/mod.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/progress.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/releases.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/retry.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_default_twenty.snap +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_ignore_missing.snap +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_base.snap +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_previous_commit.snap +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/snapshots/sentry_cli__utils__vcs__get_commits_from_git.snap +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/sourcemaps/inject.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/system.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/ui.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/update.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/vcs.rs +0 -0
- {sentry_cli-2.20.6 → sentry_cli-2.21.0}/src/utils/xcode.rs +0 -0
|
@@ -8,7 +8,7 @@ version = "0.19.0"
|
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
9
|
checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97"
|
|
10
10
|
dependencies = [
|
|
11
|
-
"gimli",
|
|
11
|
+
"gimli 0.27.3",
|
|
12
12
|
]
|
|
13
13
|
|
|
14
14
|
[[package]]
|
|
@@ -171,18 +171,6 @@ version = "1.3.2"
|
|
|
171
171
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
172
172
|
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
|
173
173
|
|
|
174
|
-
[[package]]
|
|
175
|
-
name = "bitvec"
|
|
176
|
-
version = "1.0.1"
|
|
177
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
178
|
-
checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c"
|
|
179
|
-
dependencies = [
|
|
180
|
-
"funty",
|
|
181
|
-
"radium",
|
|
182
|
-
"tap",
|
|
183
|
-
"wyz",
|
|
184
|
-
]
|
|
185
|
-
|
|
186
174
|
[[package]]
|
|
187
175
|
name = "block-buffer"
|
|
188
176
|
version = "0.10.3"
|
|
@@ -786,6 +774,12 @@ version = "0.1.4"
|
|
|
786
774
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
787
775
|
checksum = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569"
|
|
788
776
|
|
|
777
|
+
[[package]]
|
|
778
|
+
name = "equivalent"
|
|
779
|
+
version = "1.0.1"
|
|
780
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
781
|
+
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
|
|
782
|
+
|
|
789
783
|
[[package]]
|
|
790
784
|
name = "errno"
|
|
791
785
|
version = "0.2.8"
|
|
@@ -813,6 +807,12 @@ version = "0.2.0"
|
|
|
813
807
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
814
808
|
checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7"
|
|
815
809
|
|
|
810
|
+
[[package]]
|
|
811
|
+
name = "fallible-iterator"
|
|
812
|
+
version = "0.3.0"
|
|
813
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
814
|
+
checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649"
|
|
815
|
+
|
|
816
816
|
[[package]]
|
|
817
817
|
name = "fastrand"
|
|
818
818
|
version = "1.8.0"
|
|
@@ -868,12 +868,6 @@ dependencies = [
|
|
|
868
868
|
"percent-encoding",
|
|
869
869
|
]
|
|
870
870
|
|
|
871
|
-
[[package]]
|
|
872
|
-
name = "funty"
|
|
873
|
-
version = "2.0.0"
|
|
874
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
875
|
-
checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
|
|
876
|
-
|
|
877
871
|
[[package]]
|
|
878
872
|
name = "generic-array"
|
|
879
873
|
version = "0.14.6"
|
|
@@ -900,8 +894,14 @@ name = "gimli"
|
|
|
900
894
|
version = "0.27.3"
|
|
901
895
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
902
896
|
checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e"
|
|
897
|
+
|
|
898
|
+
[[package]]
|
|
899
|
+
name = "gimli"
|
|
900
|
+
version = "0.28.0"
|
|
901
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
902
|
+
checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0"
|
|
903
903
|
dependencies = [
|
|
904
|
-
"fallible-iterator",
|
|
904
|
+
"fallible-iterator 0.3.0",
|
|
905
905
|
"stable_deref_trait",
|
|
906
906
|
]
|
|
907
907
|
|
|
@@ -939,9 +939,9 @@ dependencies = [
|
|
|
939
939
|
|
|
940
940
|
[[package]]
|
|
941
941
|
name = "goblin"
|
|
942
|
-
version = "0.
|
|
942
|
+
version = "0.7.1"
|
|
943
943
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
944
|
-
checksum = "
|
|
944
|
+
checksum = "f27c1b4369c2cd341b5de549380158b105a04c331be5db9110eef7b6d2742134"
|
|
945
945
|
dependencies = [
|
|
946
946
|
"log",
|
|
947
947
|
"plain",
|
|
@@ -957,6 +957,12 @@ dependencies = [
|
|
|
957
957
|
"ahash",
|
|
958
958
|
]
|
|
959
959
|
|
|
960
|
+
[[package]]
|
|
961
|
+
name = "hashbrown"
|
|
962
|
+
version = "0.14.0"
|
|
963
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
964
|
+
checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a"
|
|
965
|
+
|
|
960
966
|
[[package]]
|
|
961
967
|
name = "hermit-abi"
|
|
962
968
|
version = "0.1.19"
|
|
@@ -1099,7 +1105,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
1099
1105
|
checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399"
|
|
1100
1106
|
dependencies = [
|
|
1101
1107
|
"autocfg",
|
|
1102
|
-
"hashbrown",
|
|
1108
|
+
"hashbrown 0.12.3",
|
|
1109
|
+
]
|
|
1110
|
+
|
|
1111
|
+
[[package]]
|
|
1112
|
+
name = "indexmap"
|
|
1113
|
+
version = "2.0.0"
|
|
1114
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1115
|
+
checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d"
|
|
1116
|
+
dependencies = [
|
|
1117
|
+
"equivalent",
|
|
1118
|
+
"hashbrown 0.14.0",
|
|
1103
1119
|
]
|
|
1104
1120
|
|
|
1105
1121
|
[[package]]
|
|
@@ -1564,7 +1580,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
1564
1580
|
checksum = "ccd746e37177e1711c20dd619a1620f34f5c8b569c53590a72dedd5344d8924a"
|
|
1565
1581
|
dependencies = [
|
|
1566
1582
|
"dlv-list",
|
|
1567
|
-
"hashbrown",
|
|
1583
|
+
"hashbrown 0.12.3",
|
|
1568
1584
|
]
|
|
1569
1585
|
|
|
1570
1586
|
[[package]]
|
|
@@ -1663,7 +1679,7 @@ version = "0.8.0"
|
|
|
1663
1679
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1664
1680
|
checksum = "82040a392923abe6279c00ab4aff62d5250d1c8555dc780e4b02783a7aa74863"
|
|
1665
1681
|
dependencies = [
|
|
1666
|
-
"fallible-iterator",
|
|
1682
|
+
"fallible-iterator 0.2.0",
|
|
1667
1683
|
"scroll 0.11.0",
|
|
1668
1684
|
"uuid",
|
|
1669
1685
|
]
|
|
@@ -1766,7 +1782,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
1766
1782
|
checksum = "5329b8f106a176ab0dce4aae5da86bfcb139bb74fb00882859e03745011f3635"
|
|
1767
1783
|
dependencies = [
|
|
1768
1784
|
"base64",
|
|
1769
|
-
"indexmap",
|
|
1785
|
+
"indexmap 1.9.2",
|
|
1770
1786
|
"line-wrap",
|
|
1771
1787
|
"quick-xml",
|
|
1772
1788
|
"serde",
|
|
@@ -1821,9 +1837,9 @@ dependencies = [
|
|
|
1821
1837
|
|
|
1822
1838
|
[[package]]
|
|
1823
1839
|
name = "proc-macro2"
|
|
1824
|
-
version = "1.0.
|
|
1840
|
+
version = "1.0.66"
|
|
1825
1841
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1826
|
-
checksum = "
|
|
1842
|
+
checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9"
|
|
1827
1843
|
dependencies = [
|
|
1828
1844
|
"unicode-ident",
|
|
1829
1845
|
]
|
|
@@ -1867,12 +1883,6 @@ dependencies = [
|
|
|
1867
1883
|
"scheduled-thread-pool",
|
|
1868
1884
|
]
|
|
1869
1885
|
|
|
1870
|
-
[[package]]
|
|
1871
|
-
name = "radium"
|
|
1872
|
-
version = "0.7.0"
|
|
1873
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1874
|
-
checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09"
|
|
1875
|
-
|
|
1876
1886
|
[[package]]
|
|
1877
1887
|
name = "rand"
|
|
1878
1888
|
version = "0.8.5"
|
|
@@ -2202,7 +2212,7 @@ dependencies = [
|
|
|
2202
2212
|
|
|
2203
2213
|
[[package]]
|
|
2204
2214
|
name = "sentry-cli"
|
|
2205
|
-
version = "2.
|
|
2215
|
+
version = "2.21.0"
|
|
2206
2216
|
dependencies = [
|
|
2207
2217
|
"anyhow",
|
|
2208
2218
|
"anylog",
|
|
@@ -2318,29 +2328,29 @@ dependencies = [
|
|
|
2318
2328
|
|
|
2319
2329
|
[[package]]
|
|
2320
2330
|
name = "serde"
|
|
2321
|
-
version = "1.0.
|
|
2331
|
+
version = "1.0.188"
|
|
2322
2332
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2323
|
-
checksum = "
|
|
2333
|
+
checksum = "cf9e0fcba69a370eed61bcf2b728575f726b50b55cba78064753d708ddc7549e"
|
|
2324
2334
|
dependencies = [
|
|
2325
2335
|
"serde_derive",
|
|
2326
2336
|
]
|
|
2327
2337
|
|
|
2328
2338
|
[[package]]
|
|
2329
2339
|
name = "serde_derive"
|
|
2330
|
-
version = "1.0.
|
|
2340
|
+
version = "1.0.188"
|
|
2331
2341
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2332
|
-
checksum = "
|
|
2342
|
+
checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2"
|
|
2333
2343
|
dependencies = [
|
|
2334
2344
|
"proc-macro2",
|
|
2335
2345
|
"quote",
|
|
2336
|
-
"syn 2.0.
|
|
2346
|
+
"syn 2.0.31",
|
|
2337
2347
|
]
|
|
2338
2348
|
|
|
2339
2349
|
[[package]]
|
|
2340
2350
|
name = "serde_json"
|
|
2341
|
-
version = "1.0.
|
|
2351
|
+
version = "1.0.105"
|
|
2342
2352
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2343
|
-
checksum = "
|
|
2353
|
+
checksum = "693151e1ac27563d6dbcec9dee9fbd5da8539b20fa14ad3752b2e6d363ace360"
|
|
2344
2354
|
dependencies = [
|
|
2345
2355
|
"itoa 1.0.5",
|
|
2346
2356
|
"ryu",
|
|
@@ -2482,9 +2492,9 @@ dependencies = [
|
|
|
2482
2492
|
|
|
2483
2493
|
[[package]]
|
|
2484
2494
|
name = "sourcemap"
|
|
2485
|
-
version = "
|
|
2495
|
+
version = "7.0.0"
|
|
2486
2496
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2487
|
-
checksum = "
|
|
2497
|
+
checksum = "dbecc42a2b6131acc3bf9a25c9fe4161dba438eb52131bba83c5d781b5b70be3"
|
|
2488
2498
|
dependencies = [
|
|
2489
2499
|
"data-encoding",
|
|
2490
2500
|
"debugid",
|
|
@@ -2531,9 +2541,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601"
|
|
|
2531
2541
|
|
|
2532
2542
|
[[package]]
|
|
2533
2543
|
name = "symbolic"
|
|
2534
|
-
version = "12.1
|
|
2544
|
+
version = "12.4.1"
|
|
2535
2545
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2536
|
-
checksum = "
|
|
2546
|
+
checksum = "2a912286ceb858457147868b59790ba9296ae3b178b01de8d628da71c2ddb800"
|
|
2537
2547
|
dependencies = [
|
|
2538
2548
|
"symbolic-common",
|
|
2539
2549
|
"symbolic-debuginfo",
|
|
@@ -2543,9 +2553,9 @@ dependencies = [
|
|
|
2543
2553
|
|
|
2544
2554
|
[[package]]
|
|
2545
2555
|
name = "symbolic-common"
|
|
2546
|
-
version = "12.1
|
|
2556
|
+
version = "12.4.1"
|
|
2547
2557
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2548
|
-
checksum = "
|
|
2558
|
+
checksum = "fac08504d60cf5bdffeb8a6a028f1a4868a5da1098bb19eb46239440039163fb"
|
|
2549
2559
|
dependencies = [
|
|
2550
2560
|
"debugid",
|
|
2551
2561
|
"memmap2",
|
|
@@ -2556,18 +2566,17 @@ dependencies = [
|
|
|
2556
2566
|
|
|
2557
2567
|
[[package]]
|
|
2558
2568
|
name = "symbolic-debuginfo"
|
|
2559
|
-
version = "12.1
|
|
2569
|
+
version = "12.4.1"
|
|
2560
2570
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2561
|
-
checksum = "
|
|
2571
|
+
checksum = "7f197ae562da1dec76244875041cbd244e517bf6bc88a9537ae874c555b019c7"
|
|
2562
2572
|
dependencies = [
|
|
2563
|
-
"bitvec",
|
|
2564
2573
|
"debugid",
|
|
2565
2574
|
"dmsort",
|
|
2566
2575
|
"elementtree",
|
|
2567
2576
|
"elsa",
|
|
2568
|
-
"fallible-iterator",
|
|
2577
|
+
"fallible-iterator 0.3.0",
|
|
2569
2578
|
"flate2",
|
|
2570
|
-
"gimli",
|
|
2579
|
+
"gimli 0.28.0",
|
|
2571
2580
|
"goblin",
|
|
2572
2581
|
"lazy_static",
|
|
2573
2582
|
"nom",
|
|
@@ -2589,11 +2598,11 @@ dependencies = [
|
|
|
2589
2598
|
|
|
2590
2599
|
[[package]]
|
|
2591
2600
|
name = "symbolic-il2cpp"
|
|
2592
|
-
version = "12.1
|
|
2601
|
+
version = "12.4.1"
|
|
2593
2602
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2594
|
-
checksum = "
|
|
2603
|
+
checksum = "ed26a4b1f8891a17ce1962d2c38093431dce2741078f5e7d7efcd13741ca2ff6"
|
|
2595
2604
|
dependencies = [
|
|
2596
|
-
"indexmap",
|
|
2605
|
+
"indexmap 2.0.0",
|
|
2597
2606
|
"serde_json",
|
|
2598
2607
|
"symbolic-common",
|
|
2599
2608
|
"symbolic-debuginfo",
|
|
@@ -2601,12 +2610,13 @@ dependencies = [
|
|
|
2601
2610
|
|
|
2602
2611
|
[[package]]
|
|
2603
2612
|
name = "symbolic-ppdb"
|
|
2604
|
-
version = "12.1
|
|
2613
|
+
version = "12.4.1"
|
|
2605
2614
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2606
|
-
checksum = "
|
|
2615
|
+
checksum = "13d6a54ddbea124f82a17564effd044078054f8bab037eb9fcdfee776d5bfbde"
|
|
2607
2616
|
dependencies = [
|
|
2608
2617
|
"flate2",
|
|
2609
|
-
"indexmap",
|
|
2618
|
+
"indexmap 1.9.2",
|
|
2619
|
+
"serde",
|
|
2610
2620
|
"serde_json",
|
|
2611
2621
|
"symbolic-common",
|
|
2612
2622
|
"thiserror",
|
|
@@ -2616,11 +2626,11 @@ dependencies = [
|
|
|
2616
2626
|
|
|
2617
2627
|
[[package]]
|
|
2618
2628
|
name = "symbolic-symcache"
|
|
2619
|
-
version = "12.1
|
|
2629
|
+
version = "12.4.1"
|
|
2620
2630
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2621
|
-
checksum = "
|
|
2631
|
+
checksum = "ea05762ece95fa2bd2b06b389e953fdf7392cf8cbab06314892df71f54815bc6"
|
|
2622
2632
|
dependencies = [
|
|
2623
|
-
"indexmap",
|
|
2633
|
+
"indexmap 2.0.0",
|
|
2624
2634
|
"symbolic-common",
|
|
2625
2635
|
"symbolic-debuginfo",
|
|
2626
2636
|
"symbolic-il2cpp",
|
|
@@ -2642,21 +2652,15 @@ dependencies = [
|
|
|
2642
2652
|
|
|
2643
2653
|
[[package]]
|
|
2644
2654
|
name = "syn"
|
|
2645
|
-
version = "2.0.
|
|
2655
|
+
version = "2.0.31"
|
|
2646
2656
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2647
|
-
checksum = "
|
|
2657
|
+
checksum = "718fa2415bcb8d8bd775917a1bf12a7931b6dfa890753378538118181e0cb398"
|
|
2648
2658
|
dependencies = [
|
|
2649
2659
|
"proc-macro2",
|
|
2650
2660
|
"quote",
|
|
2651
2661
|
"unicode-ident",
|
|
2652
2662
|
]
|
|
2653
2663
|
|
|
2654
|
-
[[package]]
|
|
2655
|
-
name = "tap"
|
|
2656
|
-
version = "1.0.1"
|
|
2657
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2658
|
-
checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
|
|
2659
|
-
|
|
2660
2664
|
[[package]]
|
|
2661
2665
|
name = "tempfile"
|
|
2662
2666
|
version = "3.3.0"
|
|
@@ -2718,7 +2722,7 @@ checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f"
|
|
|
2718
2722
|
dependencies = [
|
|
2719
2723
|
"proc-macro2",
|
|
2720
2724
|
"quote",
|
|
2721
|
-
"syn 2.0.
|
|
2725
|
+
"syn 2.0.31",
|
|
2722
2726
|
]
|
|
2723
2727
|
|
|
2724
2728
|
[[package]]
|
|
@@ -2798,7 +2802,7 @@ version = "0.19.3"
|
|
|
2798
2802
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2799
2803
|
checksum = "5e6a7712b49e1775fb9a7b998de6635b299237f48b404dde71704f2e0e7f37e5"
|
|
2800
2804
|
dependencies = [
|
|
2801
|
-
"indexmap",
|
|
2805
|
+
"indexmap 1.9.2",
|
|
2802
2806
|
"nom8",
|
|
2803
2807
|
"serde",
|
|
2804
2808
|
"serde_spanned",
|
|
@@ -3059,7 +3063,7 @@ version = "0.102.0"
|
|
|
3059
3063
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3060
3064
|
checksum = "48134de3d7598219ab9eaf6b91b15d8e50d31da76b8519fe4ecfcec2cf35104b"
|
|
3061
3065
|
dependencies = [
|
|
3062
|
-
"indexmap",
|
|
3066
|
+
"indexmap 1.9.2",
|
|
3063
3067
|
"url",
|
|
3064
3068
|
]
|
|
3065
3069
|
|
|
@@ -3184,15 +3188,6 @@ version = "0.42.1"
|
|
|
3184
3188
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3185
3189
|
checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd"
|
|
3186
3190
|
|
|
3187
|
-
[[package]]
|
|
3188
|
-
name = "wyz"
|
|
3189
|
-
version = "0.5.1"
|
|
3190
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3191
|
-
checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed"
|
|
3192
|
-
dependencies = [
|
|
3193
|
-
"tap",
|
|
3194
|
-
]
|
|
3195
|
-
|
|
3196
3191
|
[[package]]
|
|
3197
3192
|
name = "yaml-rust"
|
|
3198
3193
|
version = "0.4.5"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
|
|
3
3
|
build = "build.rs"
|
|
4
4
|
name = "sentry-cli"
|
|
5
|
-
version = "2.
|
|
5
|
+
version = "2.21.0"
|
|
6
6
|
edition = "2021"
|
|
7
7
|
rust-version = "1.65"
|
|
8
8
|
|
|
@@ -65,8 +65,8 @@ sentry = { version = "0.31.2", default-features = false, features = [
|
|
|
65
65
|
serde = { version = "1.0.152", features = ["derive"] }
|
|
66
66
|
serde_json = "1.0.93"
|
|
67
67
|
sha1_smol = { version = "1.0.0", features = ["serde"] }
|
|
68
|
-
sourcemap = { version = "
|
|
69
|
-
symbolic = { version = "12.1
|
|
68
|
+
sourcemap = { version = "7.0.0", features = ["ram_bundle"] }
|
|
69
|
+
symbolic = { version = "12.4.1", features = ["debuginfo-serde", "il2cpp"] }
|
|
70
70
|
thiserror = "1.0.38"
|
|
71
71
|
url = "2.3.1"
|
|
72
72
|
username = "0.2.0"
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
use std::fs;
|
|
2
|
-
use std::path::{PathBuf};
|
|
3
|
-
use std::str::FromStr;
|
|
4
|
-
use anyhow::{bail, Context, Result};
|
|
5
|
-
use clap::{Arg, ArgMatches, Command};
|
|
6
|
-
use sentry::types::DebugId;
|
|
7
|
-
use symbolic::debuginfo::sourcebundle::{SourceFileType};
|
|
8
1
|
use crate::api::Api;
|
|
9
2
|
use crate::config::Config;
|
|
3
|
+
use crate::constants::DEFAULT_MAX_WAIT;
|
|
10
4
|
use crate::utils::args::ArgExt;
|
|
11
5
|
use crate::utils::file_search::ReleaseFileSearch;
|
|
12
6
|
use crate::utils::file_upload::{FileUpload, SourceFile, UploadContext};
|
|
13
|
-
use crate::utils::fs::
|
|
7
|
+
use crate::utils::fs::path_as_url;
|
|
8
|
+
use anyhow::{bail, Context, Result};
|
|
9
|
+
use clap::{Arg, ArgMatches, Command};
|
|
10
|
+
use sentry::types::DebugId;
|
|
11
|
+
use std::collections::BTreeMap;
|
|
12
|
+
use std::fs;
|
|
13
|
+
use std::path::PathBuf;
|
|
14
|
+
use std::str::FromStr;
|
|
15
|
+
use symbolic::debuginfo::sourcebundle::SourceFileType;
|
|
14
16
|
|
|
15
17
|
pub fn make_command(command: Command) -> Command {
|
|
16
18
|
command
|
|
17
19
|
.hide(true) // experimental for now
|
|
18
|
-
.about(
|
|
20
|
+
.about(
|
|
21
|
+
"Create a source bundle for the given JVM based source files (e.g. Java, Kotlin, ...)",
|
|
22
|
+
)
|
|
19
23
|
.org_arg()
|
|
20
24
|
.project_arg(false)
|
|
21
25
|
.arg(
|
|
@@ -49,6 +53,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
49
53
|
let project = config.get_project(matches).ok();
|
|
50
54
|
let api = Api::current();
|
|
51
55
|
let chunk_upload_options = api.get_chunk_upload_options(&org)?;
|
|
56
|
+
|
|
52
57
|
let context = &UploadContext {
|
|
53
58
|
org: &org,
|
|
54
59
|
project: project.as_deref(),
|
|
@@ -56,6 +61,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
56
61
|
dist: None,
|
|
57
62
|
note: None,
|
|
58
63
|
wait: true,
|
|
64
|
+
max_wait: DEFAULT_MAX_WAIT,
|
|
59
65
|
dedupe: false,
|
|
60
66
|
chunk_upload_options: chunk_upload_options.as_ref(),
|
|
61
67
|
};
|
|
@@ -73,7 +79,10 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
73
79
|
}
|
|
74
80
|
|
|
75
81
|
if !output_path.exists() {
|
|
76
|
-
fs::create_dir_all(output_path).context(format!(
|
|
82
|
+
fs::create_dir_all(output_path).context(format!(
|
|
83
|
+
"Failed to create output directory {}",
|
|
84
|
+
output_path.display()
|
|
85
|
+
))?;
|
|
77
86
|
}
|
|
78
87
|
|
|
79
88
|
let sources = ReleaseFileSearch::new(path.to_path_buf()).collect_files()?;
|
|
@@ -90,7 +99,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
90
99
|
path: source.path.clone(),
|
|
91
100
|
contents: source.contents.clone(),
|
|
92
101
|
ty: SourceFileType::Source,
|
|
93
|
-
headers:
|
|
102
|
+
headers: BTreeMap::new(),
|
|
94
103
|
messages: vec![],
|
|
95
104
|
already_uploaded: false,
|
|
96
105
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
use std::collections::BTreeSet;
|
|
2
2
|
use std::str::{self, FromStr};
|
|
3
|
+
use std::time::Duration;
|
|
3
4
|
|
|
4
5
|
use anyhow::{bail, format_err, Result};
|
|
5
6
|
use clap::{builder::PossibleValuesParser, Arg, ArgAction, ArgMatches, Command};
|
|
@@ -11,6 +12,7 @@ use symbolic::debuginfo::FileFormat;
|
|
|
11
12
|
|
|
12
13
|
use crate::api::Api;
|
|
13
14
|
use crate::config::Config;
|
|
15
|
+
use crate::constants::DEFAULT_MAX_WAIT;
|
|
14
16
|
use crate::utils::args::ArgExt;
|
|
15
17
|
use crate::utils::dif::{DifType, ObjectDifFeatures};
|
|
16
18
|
use crate::utils::dif_upload::{DifFormat, DifUpload};
|
|
@@ -182,9 +184,23 @@ pub fn make_command(command: Command) -> Command {
|
|
|
182
184
|
Arg::new("wait")
|
|
183
185
|
.long("wait")
|
|
184
186
|
.action(ArgAction::SetTrue)
|
|
187
|
+
.conflicts_with("wait_for")
|
|
185
188
|
.help(
|
|
186
189
|
"Wait for the server to fully process uploaded files. Errors \
|
|
187
|
-
can only be displayed if --wait is specified, but this will \
|
|
190
|
+
can only be displayed if --wait or --wait-for is specified, but this will \
|
|
191
|
+
significantly slow down the upload process.",
|
|
192
|
+
),
|
|
193
|
+
)
|
|
194
|
+
.arg(
|
|
195
|
+
Arg::new("wait_for")
|
|
196
|
+
.long("wait-for")
|
|
197
|
+
.value_name("SECS")
|
|
198
|
+
.value_parser(clap::value_parser!(u64))
|
|
199
|
+
.conflicts_with("wait")
|
|
200
|
+
.help(
|
|
201
|
+
"Wait for the server to fully process uploaded files, \
|
|
202
|
+
but at most for the given number of seconds. Errors \
|
|
203
|
+
can only be displayed if --wait or --wait-for is specified, but this will \
|
|
188
204
|
significantly slow down the upload process.",
|
|
189
205
|
),
|
|
190
206
|
)
|
|
@@ -217,10 +233,15 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
217
233
|
org, project
|
|
218
234
|
);
|
|
219
235
|
|
|
236
|
+
let wait_for_secs = matches.get_one::<u64>("wait_for").copied();
|
|
237
|
+
let wait = matches.get_flag("wait") || wait_for_secs.is_some();
|
|
238
|
+
let max_wait = wait_for_secs.map_or(DEFAULT_MAX_WAIT, Duration::from_secs);
|
|
239
|
+
|
|
220
240
|
// Build generic upload parameters
|
|
221
241
|
let mut upload = DifUpload::new(org.clone(), project.clone());
|
|
222
242
|
upload
|
|
223
|
-
.wait(
|
|
243
|
+
.wait(wait)
|
|
244
|
+
.max_wait(max_wait)
|
|
224
245
|
.search_paths(matches.get_many::<String>("paths").unwrap_or_default())
|
|
225
246
|
.allow_zips(!matches.get_flag("no_zips"))
|
|
226
247
|
.filter_ids(ids);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
use std::collections::BTreeMap;
|
|
1
2
|
use std::ffi::OsStr;
|
|
2
3
|
use std::fs;
|
|
3
4
|
use std::io::Read;
|
|
4
5
|
use std::path::Path;
|
|
6
|
+
use std::time::Duration;
|
|
5
7
|
|
|
6
8
|
use anyhow::{bail, format_err, Result};
|
|
7
9
|
use clap::{Arg, ArgAction, ArgMatches, Command};
|
|
@@ -10,6 +12,7 @@ use symbolic::debuginfo::sourcebundle::SourceFileType;
|
|
|
10
12
|
|
|
11
13
|
use crate::api::{Api, ProgressBarMode};
|
|
12
14
|
use crate::config::Config;
|
|
15
|
+
use crate::constants::DEFAULT_MAX_WAIT;
|
|
13
16
|
use crate::utils::args::validate_distribution;
|
|
14
17
|
use crate::utils::file_search::ReleaseFileSearch;
|
|
15
18
|
use crate::utils::file_upload::{
|
|
@@ -51,8 +54,20 @@ pub fn make_command(command: Command) -> Command {
|
|
|
51
54
|
Arg::new("wait")
|
|
52
55
|
.long("wait")
|
|
53
56
|
.action(ArgAction::SetTrue)
|
|
57
|
+
.conflicts_with("wait_for")
|
|
54
58
|
.help("Wait for the server to fully process uploaded files."),
|
|
55
59
|
)
|
|
60
|
+
.arg(
|
|
61
|
+
Arg::new("wait_for")
|
|
62
|
+
.long("wait-for")
|
|
63
|
+
.value_name("SECS")
|
|
64
|
+
.value_parser(clap::value_parser!(u64))
|
|
65
|
+
.conflicts_with("wait")
|
|
66
|
+
.help(
|
|
67
|
+
"Wait for the server to fully process uploaded files, \
|
|
68
|
+
but at most for the given number of seconds.",
|
|
69
|
+
),
|
|
70
|
+
)
|
|
56
71
|
.arg(
|
|
57
72
|
Arg::new("file-headers")
|
|
58
73
|
.long("file-header")
|
|
@@ -115,24 +130,29 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
115
130
|
let chunk_upload_options = api.get_chunk_upload_options(&org)?;
|
|
116
131
|
|
|
117
132
|
let dist = matches.get_one::<String>("dist").map(String::as_str);
|
|
118
|
-
let mut headers =
|
|
133
|
+
let mut headers = BTreeMap::new();
|
|
119
134
|
if let Some(header_list) = matches.get_many::<String>("file-headers") {
|
|
120
135
|
for header in header_list {
|
|
121
136
|
if !header.contains(':') {
|
|
122
137
|
bail!("Invalid header. Needs to be in key:value format");
|
|
123
138
|
}
|
|
124
139
|
let (key, value) = header.split_once(':').unwrap();
|
|
125
|
-
headers.
|
|
140
|
+
headers.insert(key.trim().to_string(), value.trim().to_string());
|
|
126
141
|
}
|
|
127
142
|
};
|
|
128
143
|
|
|
144
|
+
let wait_for_secs = matches.get_one::<u64>("wait_for").copied();
|
|
145
|
+
let wait = matches.get_flag("wait") || wait_for_secs.is_some();
|
|
146
|
+
let max_wait = wait_for_secs.map_or(DEFAULT_MAX_WAIT, Duration::from_secs);
|
|
147
|
+
|
|
129
148
|
let context = &UploadContext {
|
|
130
149
|
org: &org,
|
|
131
150
|
project: project.as_deref(),
|
|
132
151
|
release: Some(&release),
|
|
133
152
|
dist,
|
|
134
153
|
note: None,
|
|
135
|
-
wait
|
|
154
|
+
wait,
|
|
155
|
+
max_wait,
|
|
136
156
|
dedupe: false,
|
|
137
157
|
chunk_upload_options: chunk_upload_options.as_ref(),
|
|
138
158
|
};
|
|
@@ -222,7 +242,13 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
222
242
|
context,
|
|
223
243
|
&contents,
|
|
224
244
|
name,
|
|
225
|
-
Some(
|
|
245
|
+
Some(
|
|
246
|
+
headers
|
|
247
|
+
.iter()
|
|
248
|
+
.map(|(k, v)| (k.clone(), v.clone()))
|
|
249
|
+
.collect::<Vec<_>>()
|
|
250
|
+
.as_slice(),
|
|
251
|
+
),
|
|
226
252
|
ProgressBarMode::Request,
|
|
227
253
|
)? {
|
|
228
254
|
println!("A {} ({} bytes)", artifact.sha1, artifact.size);
|
|
@@ -27,7 +27,10 @@ fn update_config(config: &Config, token: &str) -> Result<()> {
|
|
|
27
27
|
|
|
28
28
|
pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
29
29
|
let config = Config::current();
|
|
30
|
-
let token_url = format!(
|
|
30
|
+
let token_url = format!(
|
|
31
|
+
"{}/orgredirect/organizations/:orgslug/settings/auth-tokens/",
|
|
32
|
+
config.get_base_url()?
|
|
33
|
+
);
|
|
31
34
|
let predefined_token = matches.get_one::<String>("auth_token");
|
|
32
35
|
let has_predefined_token = predefined_token.is_some();
|
|
33
36
|
|
|
@@ -68,11 +71,19 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
68
71
|
cfg.set_auth(Auth::Token(token.to_string()))?;
|
|
69
72
|
Ok(())
|
|
70
73
|
})?;
|
|
74
|
+
|
|
71
75
|
match Api::with_config(test_cfg).get_auth_info() {
|
|
72
76
|
Ok(info) => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
match info.user {
|
|
78
|
+
Some(user) => {
|
|
79
|
+
// Old school user auth token
|
|
80
|
+
println!("Valid token for user {}", user.email);
|
|
81
|
+
}
|
|
82
|
+
None => {
|
|
83
|
+
// New org auth token
|
|
84
|
+
println!("Valid org token");
|
|
85
|
+
}
|
|
86
|
+
}
|
|
76
87
|
break;
|
|
77
88
|
}
|
|
78
89
|
Err(err) => {
|