Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/git/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "git",
"version": "1.1.1",
"version": "1.1.2",
"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.",
Expand Down
4 changes: 2 additions & 2 deletions src/git/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ fi

check_packages libpcre2-dev

if [ "${VERSION_CODENAME}" = "focal" ]; then
if [ "${VERSION_CODENAME}" = "focal" ] || [ "${VERSION_CODENAME}" = "bullseye" ]; then
check_packages libpcre2-posix2
elif [ "${VERSION_CODENAME}" = "bionic" ]; then
elif [ "${VERSION_CODENAME}" = "bionic" ] || [ "${VERSION_CODENAME}" = "buster" ]; then
check_packages libpcre2-posix0
else
check_packages libpcre2-posix3
Expand Down
16 changes: 16 additions & 0 deletions test/git/install_git_from_src_bullseye.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -e

# Optional: Import test library
source dev-container-features-test-lib

check "version" git --version
check "gettext" dpkg-query -l gettext

cd /tmp && git clone https://github.com/devcontainers/feature-starter.git
cd feature-starter
check "perl" bash -c "git -c grep.patternType=perl grep -q 'a.+b'"

# Report result
reportResults
16 changes: 16 additions & 0 deletions test/git/install_git_from_src_buster.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -e

# Optional: Import test library
source dev-container-features-test-lib

check "version" git --version
check "gettext" dpkg-query -l gettext

cd /tmp && git clone https://github.com/devcontainers/feature-starter.git
cd feature-starter
check "perl" bash -c "git -c grep.patternType=perl grep -q 'a.+b'"

# Report result
reportResults
18 changes: 18 additions & 0 deletions test/git/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,23 @@
"ppa": "false"
}
}
},
"install_git_from_src_bullseye": {
"image": "debian:bullseye",
"features": {
"git": {
"version": "latest",
"ppa": "false"
}
}
},
"install_git_from_src_buster": {
"image": "debian:buster",
"features": {
"git": {
"version": "latest",
"ppa": "false"
}
}
}
}