git : Remove misleading variables (#146)
* remove misleading ppa value * add test * nit * bump version
This commit is contained in:
parent
32578d6c4d
commit
e90f4f9e0a
4 changed files with 26 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"id": "git",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"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.",
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
# Docs: https://github.com/microsoft/vscode-dev-containers/blob/main/script-library/docs/git-from-src.md
|
||||
# Maintainer: The VS Code and Codespaces Teams
|
||||
|
||||
GIT_VERSION=${VERSION:-"latest"} # 'system' checks the base image first, else installs 'latest'
|
||||
USE_PPA_IF_AVAILABLE=${PPA:-"false"}
|
||||
GIT_VERSION=${VERSION} # 'system' checks the base image first, else installs 'latest'
|
||||
USE_PPA_IF_AVAILABLE=${PPA}
|
||||
|
||||
GIT_CORE_PPA_ARCHIVE_GPG_KEY=E1DD270288B4E6030699E45FA1715D88E1DF1F24
|
||||
GPG_KEY_SERVERS="keyserver hkp://keyserver.ubuntu.com:80
|
||||
|
|
12
test/git/install_git_from_src.sh
Normal file
12
test/git/install_git_from_src.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Optional: Import test library
|
||||
source dev-container-features-test-lib
|
||||
|
||||
check "version" git --version
|
||||
check "gettext" dpkg-query -l gettext
|
||||
|
||||
# Report result
|
||||
reportResults
|
11
test/git/scenarios.json
Normal file
11
test/git/scenarios.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"install_git_from_src": {
|
||||
"image": "ubuntu:focal",
|
||||
"features": {
|
||||
"git": {
|
||||
"version": "latest",
|
||||
"ppa": "false"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue