From c4648ab98cdeeb520e7e629c5db4a471ec802954 Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Wed, 23 Nov 2022 09:33:50 -0800 Subject: go: fix bug - Go doesn't update version if go is already installed (#303) * go: fix bug - Go doesn't update version if go is already installed * Update tests with bash -c --- test/go/install_go_tool_in_postCreate.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/go/install_go_tool_in_postCreate.sh') diff --git a/test/go/install_go_tool_in_postCreate.sh b/test/go/install_go_tool_in_postCreate.sh index dbb086c..54637d9 100644 --- a/test/go/install_go_tool_in_postCreate.sh +++ b/test/go/install_go_tool_in_postCreate.sh @@ -5,9 +5,9 @@ set -e # Optional: Import test library 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" +check "mkcert version" bash -c "mkcert --version | grep v1.4.2" +check "mkcert is installed at correct path" bash -c "which mkcert | grep /go/bin/mkcert" +check "golangci-lint version" bash -c "golangci-lint --version | grep 'golangci-lint has version 1.50.0'" # Report result reportResults -- cgit v1.2.3