aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>2022-10-28 23:57:57 +0300
committerGitHub <noreply@github.com>2022-10-28 23:57:57 +0300
commit0ee38a48e4833063acfc9e3c177c7067941e3b30 (patch)
treeb81a8dfbe292edbefc428ce485ff4d8b0932d636 /test
parent85d2150997d4a1736c1f407d18ae71acb8541ed3 (diff)
Install golangci-lint from prebuilt binaries and allow specifying its version (#238)
* Install golangci-lint from prebuilt binaries and allow specifying its version * Updated as requested * Update src/go/devcontainer-feature.json Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com> * Updated install path Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
Diffstat (limited to 'test')
-rw-r--r--test/go/install_go_tool_in_postCreate.sh1
-rw-r--r--test/go/scenarios.json3
2 files changed, 3 insertions, 1 deletions
diff --git a/test/go/install_go_tool_in_postCreate.sh b/test/go/install_go_tool_in_postCreate.sh
index 7d4bc7b..dbb086c 100644
--- a/test/go/install_go_tool_in_postCreate.sh
+++ b/test/go/install_go_tool_in_postCreate.sh
@@ -7,6 +7,7 @@ source dev-container-features-test-lib
check "mkcert version" mkcert --version | grep "v1.4.2"
check "mkcert is installed at correct path" which mkcert | grep "/go/bin/mkcert"
+check "golangci-lint version" golangci-lint --version | grep "golangci-lint has version 1.50.0"
# Report result
reportResults
diff --git a/test/go/scenarios.json b/test/go/scenarios.json
index 295dbe0..b3fe49c 100644
--- a/test/go/scenarios.json
+++ b/test/go/scenarios.json
@@ -3,7 +3,8 @@
"image": "ubuntu:focal",
"features": {
"go": {
- "version": "latest"
+ "version": "latest",
+ "golangciLintVersion": "1.50.0"
}
},
"postCreateCommand": "go install filippo.io/mkcert@v1.4.2"