Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
2af02c19
Unverified
Commit
2af02c19
authored
Dec 17, 2022
by
Samruddhi Khandale
Committed by
GitHub
Dec 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Git - Bug Fix: Feature fails with "ppa:false" for "buster" & "bullseye" (#340)
parent
e46c73de
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
3 deletions
+53
-3
devcontainer-feature.json
src/git/devcontainer-feature.json
+1
-1
install.sh
src/git/install.sh
+2
-2
install_git_from_src_bullseye.sh
test/git/install_git_from_src_bullseye.sh
+16
-0
install_git_from_src_buster.sh
test/git/install_git_from_src_buster.sh
+16
-0
scenarios.json
test/git/scenarios.json
+18
-0
No files found.
src/git/devcontainer-feature.json
View file @
2af02c19
{
"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."
,
...
...
src/git/install.sh
View file @
2af02c19
...
...
@@ -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
...
...
test/git/install_git_from_src_bullseye.sh
0 → 100644
View file @
2af02c19
#!/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
test/git/install_git_from_src_buster.sh
0 → 100644
View file @
2af02c19
#!/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
test/git/scenarios.json
View file @
2af02c19
...
...
@@ -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"
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment