Skip to content

Commit d5cdeea

Browse files
ctruedenclaude
andcommitted
release-modules.sh: warn when the local SNAPSHOT install fails
The install only helps later modules depending on this one resolve its new SNAPSHOT version. If a later module needs it but it is missing, that module fails in release-version.sh before its release begins. Meanwhile, the release tag of this module is already pushed, so failing here leaves its CI and Maven Central checks undone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a43cb30 commit d5cdeea

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎release-modules.sh‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,12 @@ do
202202
# version to be resolvable, since release-version.sh reads their
203203
# project details before pinning their sibling dependencies to
204204
# releases. And the enforcer rejects SNAPSHOT dependencies, which
205-
# do not matter for this local install.
205+
# do not matter for this local install. If the install fails, a
206+
# later module needing it fails in release-version.sh before its
207+
# release begins, so we only warn here.
206208
log "Installing next SNAPSHOT of $artifactId locally"
207209
mvn -B -q -N install -DskipTests -Denforcer.skip ||
208-
die "Local install of the next SNAPSHOT of $artifactId failed"
210+
log "WARNING: Local install of the next SNAPSHOT of $artifactId failed"
209211
fi
210212
first=
211213

0 commit comments

Comments
 (0)