Skip to content

Commit e00c97c

Browse files
authored
Merge pull request #190 from devcontainers-extra/fix/189-terragrunt
fix(terragrunt): filter out additional assets
2 parents 8200021 + cb278f7 commit e00c97c

File tree

5 files changed

+39
-4
lines changed

5 files changed

+39
-4
lines changed

src/terragrunt/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "terragrunt",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"name": "Terragrunt (via Github Releases)",
55
"documentationURL": "http://github.com/devcontainers-extra/features/tree/main/src/terragrunt",
66
"description": "Terragrunt is a thin wrapper that provides extra tools for keeping your configurations DRY, working with multiple Terraform modules, and managing remote state.",

src/terragrunt/install.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ $nanolayer_location \
1515
install \
1616
devcontainer-feature \
1717
"ghcr.io/devcontainers-extra/features/gh-release:1.0.25" \
18-
--option repo='gruntwork-io/terragrunt' --option binaryNames='terragrunt' --option version="$VERSION"
19-
20-
18+
--option repo='gruntwork-io/terragrunt' --option binaryNames='terragrunt' --option version="$VERSION" \
19+
--option assetRegex='^(?!.*(\.zip|\.tar\.gz)$).*$'
2120

2221
echo 'Done!'
2322

test/terragrunt/scenarios.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,21 @@
44
"features": {
55
"terragrunt": {}
66
}
7+
},
8+
"test_specific_version_before_assets_change": {
9+
"image": "mcr.microsoft.com/devcontainers/base:debian",
10+
"features": {
11+
"terragrunt": {
12+
"version": "0.93.5"
13+
}
14+
}
15+
},
16+
"test_specific_version": {
17+
"image": "mcr.microsoft.com/devcontainers/base:debian",
18+
"features": {
19+
"terragrunt": {
20+
"version": "0.96.0"
21+
}
22+
}
723
}
824
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
source dev-container-features-test-lib
6+
7+
check "terragrunt --version" terragrunt --version
8+
check "terragrunt version is equal to 0.96.0" sh -c "terragrunt --version | grep '0.96.0'"
9+
10+
reportResults
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
source dev-container-features-test-lib
6+
7+
check "terragrunt --version" terragrunt --version
8+
check "terragrunt version is equal to 0.93.5" sh -c "terragrunt --version | grep '0.93.5'"
9+
10+
reportResults

0 commit comments

Comments
 (0)