Skip to content

Commit 069fde1

Browse files
Fix Diktat version at 1.2.3
1 parent 42b6d4f commit 069fde1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

bin/diktat

+8-6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ declare -r LOG_DIR="${BIN_DIR}"
3131
declare -r CURL='curl'
3232
declare -r CURL_FLAGS=('-SL')
3333
declare -r DIKTAT_JAR_WILDCARD='diktat-*.jar'
34+
declare -r DIKTAT_VERSION_TAG='v1.2.3'
3435
declare -r KTLINT_EXECUTABLE='ktlint'
36+
# We stick to version 0.46.1 because of
37+
# https://github.com/pinterest/ktlint/issues/1599,
38+
# https://github.com/pinterest/ktlint/issues/1600, and
39+
# https://github.com/pinterest/ktlint/issues/1601.
40+
declare -r KTLINT_VERSION_TAG='0.46.1'
3541
declare -r VERSION_LATEST='latest'
3642

3743
# Global variables.
@@ -454,17 +460,13 @@ find_java
454460

455461
if [[ ! -x "${LIB_DIR}/${KTLINT_EXECUTABLE}" ]]
456462
then
457-
# We stick to version 0.46.1 because of
458-
# https://github.com/pinterest/ktlint/issues/1599,
459-
# https://github.com/pinterest/ktlint/issues/1600, and
460-
# https://github.com/pinterest/ktlint/issues/1601.
461-
download_from_github "pinterest/ktlint" "0.46.1"
463+
download_from_github 'pinterest/ktlint' "${KTLINT_VERSION_TAG}"
462464
chmod 755 "${LIB_DIR}/${KTLINT_EXECUTABLE}"
463465
fi
464466

465467
if [[ -z "$(find_diktat_jar)" ]]
466468
then
467-
download_from_github "saveourtool/diktat"
469+
download_from_github 'saveourtool/diktat' "${DIKTAT_VERSION_TAG}"
468470
fi
469471

470472
DIKTAT_JAR="$(find_diktat_jar)"

0 commit comments

Comments
 (0)