Skip to content
This repository was archived by the owner on Jan 12, 2025. It is now read-only.

Commit 9a1d24b

Browse files
gh-release requires git as part of the install process (#570)
1 parent 84379a3 commit 9a1d24b

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

src/gh-release/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "gh-release",
3-
"version": "1.0.24",
3+
"version": "1.0.25",
44
"name": "Github Release",
55
"documentationURL": "http://github.com/devcontainers-contrib/features/tree/main/src/gh-release",
66
"description": "Github Release feature will download, extract and add to path a release binary from a given repo",

src/gh-release/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88
# `ensure_nanolayer` is a bash function that will find any existing nanolayer installations,
99
# and if missing - will download a temporary copy that automatically get deleted at the end
1010
# of the script
11-
ensure_nanolayer nanolayer_location "v0.5.5"
11+
ensure_nanolayer nanolayer_location "v0.5.6"
1212

1313

1414

test/gh-release/scenarios.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,15 @@
6262
"additionalFlags": "--no-filter-assets-by-platform"
6363
}
6464
}
65+
},
66+
"test_no_git": {
67+
"image": "ubuntu",
68+
"features": {
69+
"gh-release": {
70+
"version": "latest",
71+
"repo": "Azure/aztfexport",
72+
"binaryNames": "aztfexport"
73+
}
74+
}
6575
}
6676
}

test/gh-release/test_no_git.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash -i
2+
3+
set -e
4+
5+
source dev-container-features-test-lib
6+
7+
check "aztfexport --version" aztfexport --version
8+
9+
reportResults

0 commit comments

Comments
 (0)