Skip to content

Commit a88ad86

Browse files
chore(sourcemaps): Deprecate release bundle uploads
1 parent 120fd2d commit a88ad86

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/api/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ impl<'a> AuthenticatedApi<'a> {
992992
.convert_rnf(ApiErrorKind::ProjectNotFound)
993993
}
994994

995+
#[deprecated = "release bundle uploads are deprecated in favor of artifact bundle uploads"]
995996
pub fn assemble_release_artifacts(
996997
&self,
997998
org: &str,

src/utils/file_upload.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,14 @@ fn poll_assemble(
556556
context.dist,
557557
)?
558558
} else {
559+
log::warn!(
560+
"[DEPRECATION NOTICE] Your Sentry server does not support artifact bundle \
561+
uploads. Falling back to deprecated release bundle upload. Support for this \
562+
deprecated upload method will be removed in Sentry CLI 3.0.0. Please upgrade your \
563+
Sentry server, or if you cannot upgrade, pin your Sentry CLI version to 2.x, so \
564+
you don't get upgraded to 3.x when it is released."
565+
);
566+
#[expect(deprecated, reason = "fallback to legacy upload")]
559567
authenticated_api.assemble_release_artifacts(
560568
context.org,
561569
context.release()?,

0 commit comments

Comments
 (0)