Skip to content

Commit

Permalink
CONST.inc as lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed Jan 1, 2022
1 parent 1b06251 commit 4fdf6a5
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
14 changes: 14 additions & 0 deletions CONST.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# https://github.com/editorconfig-checker/editorconfig-checker
YP_ECCHECKER_VSN=2.4.0

# https://github.com/stedolan/jq
YP_JQ_VSN=1.6

# https://github.com/zricethezav/gitleaks
YP_GITLEAKS_VSN=8.2.4

# https://github.com/github/gitignore
YP_GITHUB_GITIGNORE_VSN=96d68766538413194aabd55e3622734cd501e715

# https://github.com/sgerrand/alpine-pkg-glibc
YP_ALPINE_PKG_GLIBC_VSN=2.32-r0
3 changes: 2 additions & 1 deletion bin/editorconfig-checker
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -euo pipefail
YP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source ${YP_DIR}/sh/common.inc.sh

VSN=2.4.0
# shellcheck disable=SC1091
VSN=$(source ${YP_DIR}/CONST.inc && echo "${YP_ECCHECKER_VSN}")
ECCHECKER_URL=https://github.com/editorconfig-checker/editorconfig-checker/releases/download

case ${OS_SHORT}-${ARCH_NORMALIZED} in
Expand Down
3 changes: 2 additions & 1 deletion bin/gitleaks
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -euo pipefail
YP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source ${YP_DIR}/sh/common.inc.sh

VSN=8.2.4
# shellcheck disable=SC1091
VSN=$(source ${YP_DIR}/CONST.inc && echo "${YP_GITLEAKS_VSN}")
GITLEAKS_URL=https://github.com/zricethezav/gitleaks/releases/download

case ${OS_SHORT}-${ARCH_NORMALIZED} in
Expand Down
3 changes: 2 additions & 1 deletion bin/jq
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -euo pipefail
YP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source ${YP_DIR}/sh/common.inc.sh

VSN=1.6
# shellcheck disable=SC1091
VSN=$(source ${YP_DIR}/CONST.inc && echo "${YP_JQ_VSN}")
JQ_URL=https://github.com/stedolan/jq/releases/download

case ${OS_SHORT}-${ARCH_NORMALIZED} in
Expand Down
3 changes: 2 additions & 1 deletion bootstrap/linux/bootstrap-sudo-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ done
(
cd $(mktemp -d -t yplatform.XXXXXXXXXX)
curl -qfsSL -o /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
GLIBC_VSN=2.32-r0
# shellcheck disable=SC1091
GLIBC_VSN=$(source ${YP_DIR}/CONST.inc && echo "${YP_ALPINE_PKG_GLIBC_VSN}")
curl -qfsSL -O \
https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VSN}/glibc-${GLIBC_VSN}.apk
curl -qfsSL -O \
Expand Down
3 changes: 2 additions & 1 deletion gitconfig/dot.gitignore_global.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -euo pipefail
YP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source ${YP_DIR}/sh/common.inc.sh

GITHUB_GLOBAL_GITIGNORE_COMMITISH=96d68766538413194aabd55e3622734cd501e715
# shellcheck disable=SC1091
GITHUB_GLOBAL_GITIGNORE_COMMITISH=$(source ${YP_DIR}/CONST.inc && echo "${YP_GITHUB_GITIGNORE_VSN}")
GITHUB_GLOBAL_GITIGNORE_BASE_URL="https://raw.githubusercontent.com/github/gitignore/${GITHUB_GLOBAL_GITIGNORE_COMMITISH}/Global" # editorconfig-checker-disable-line

# Removing the Emacs gitignore template because it's overly agressive,
Expand Down

0 comments on commit 4fdf6a5

Please sign in to comment.