File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1326,6 +1326,7 @@ fn upload_in_batches(
1326
1326
}
1327
1327
1328
1328
/// Uploads debug info files using the legacy endpoint.
1329
+ #[ deprecated = "this non-chunked upload mechanism is deprecated in favor of upload_difs_chunked" ]
1329
1330
fn upload_difs_batched ( options : & DifUpload ) -> Result < Vec < DebugInfoFile > > {
1330
1331
// Search for debug files in the file system and ZIPs
1331
1332
let found = search_difs ( options) ?;
@@ -1647,6 +1648,16 @@ impl<'a> DifUpload<'a> {
1647
1648
}
1648
1649
1649
1650
self . validate_capabilities ( ) ;
1651
+
1652
+ log:: warn!(
1653
+ "[DEPRECATION NOTICE] Your Sentry server does not support chunked uploads for debug \
1654
+ files. Falling back to deprecated upload method. Support for this deprecated upload \
1655
+ method will be removed in Sentry CLI 3.0.0. Please upgrade your Sentry server, or if \
1656
+ you cannot upgrade, pin your Sentry CLI version to 2.x, so you don't get upgraded \
1657
+ to 3.x when it is released."
1658
+ ) ;
1659
+
1660
+ #[ expect( deprecated, reason = "fallback to legacy upload" ) ]
1650
1661
Ok ( ( upload_difs_batched ( & self ) ?, false ) )
1651
1662
}
1652
1663
You can’t perform that action at this time.
0 commit comments