Skip to content

Commit d122152

Browse files
committed
release-version: give advice in more failure cases
1 parent c1f4271 commit d122152

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

release-version.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,18 @@ esac
141141
# Check that the release version number conforms to SemVer.
142142
VALID_SEMVER_BUMP="$(cd "$(dirname "$0")" && pwd)/valid-semver-bump.sh"
143143
test -f "$VALID_SEMVER_BUMP" ||
144-
die "Missing helper script at '$VALID_SEMVER_BUMP'"
144+
die "Missing helper script at '$VALID_SEMVER_BUMP'
145+
Do you have a full clone of git://github.com/scijava/scijava-scripts?"
145146
test "$SKIP_VERSION_CHECK" || {
146-
sh -$- "$VALID_SEMVER_BUMP" "$pomVersion" "$VERSION" || die
147+
sh -$- "$VALID_SEMVER_BUMP" "$pomVersion" "$VERSION" ||
148+
die "If you are sure, try again with --skip-version-check flag."
147149
}
148150

149151
# Check that the project extends the latest version of pom-scijava.
150152
MAVEN_HELPER="$(cd "$(dirname "$0")" && pwd)/maven-helper.sh"
151153
test -f "$MAVEN_HELPER" ||
152-
die "Missing helper script at '$MAVEN_HELPER'"
154+
die "Missing helper script at '$MAVEN_HELPER'
155+
Do you have a full clone of git://github.com/scijava/scijava-scripts?"
153156
test "$SKIP_VERSION_CHECK" -o "$parentGAV" != "${parentGAV#$}" || {
154157
latestParentVersion=$(sh -$- "$MAVEN_HELPER" latest-version "$parentGAV")
155158
currentParentVersion=${parentGAV##*:}

0 commit comments

Comments
 (0)