Skip to content

Commit 3125708

Browse files
chore(sourcemaps): Deprecate release bundle uploads
1 parent 80a9edc commit 3125708

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
@@ -991,6 +991,7 @@ impl<'a> AuthenticatedApi<'a> {
991991
.convert_rnf(ApiErrorKind::ProjectNotFound)
992992
}
993993

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

src/utils/file_upload.rs

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

0 commit comments

Comments
 (0)