From 7fa90110d762797cc0b1c2fe8fcc028c9b813d56 Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Tue, 13 Dec 2022 14:09:16 -0800 Subject: Git: Build from source with USE_LIBPCRE (#331) --- src/git/devcontainer-feature.json | 2 +- src/git/install.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/git') diff --git a/src/git/devcontainer-feature.json b/src/git/devcontainer-feature.json index ef2b856..a8ea798 100644 --- a/src/git/devcontainer-feature.json +++ b/src/git/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "git", - "version": "1.0.5", + "version": "1.1.0", "name": "Git (from source)", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/git", "description": "Install an up-to-date version of Git, built from source as needed. Useful for when you want the latest and greatest features. Auto-detects latest stable version and installs needed dependencies.", diff --git a/src/git/install.sh b/src/git/install.sh index 153b4e1..7ffa01e 100755 --- a/src/git/install.sh +++ b/src/git/install.sh @@ -147,11 +147,13 @@ if [ "$(echo "${GIT_VERSION}" | grep -o '\.' | wc -l)" != "2" ]; then fi fi +check_packages libpcre2-posix2 libpcre2-dev + echo "Downloading source for ${GIT_VERSION}..." curl -sL https://github.com/git/git/archive/v${GIT_VERSION}.tar.gz | tar -xzC /tmp 2>&1 echo "Building..." cd /tmp/git-${GIT_VERSION} -make -s prefix=/usr/local all && make -s prefix=/usr/local install 2>&1 +make -s USE_LIBPCRE=YesPlease prefix=/usr/local all && make -s USE_LIBPCRE=YesPlease prefix=/usr/local install 2>&1 rm -rf /tmp/git-${GIT_VERSION} rm -rf /var/lib/apt/lists/* echo "Done!" -- cgit v1.2.3