From b3fc1b76312ea48879130578ca58bd239f84fde6 Mon Sep 17 00:00:00 2001 From: Sebastian Spaink <3441183+sspaink@users.noreply.github.com> Date: Mon, 19 Sep 2022 10:32:04 -0500 Subject: [PATCH] fix: Enable global confirmation for installing mingw (#11835) --- .circleci/config.yml | 1 + scripts/installgo_windows.sh | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7cabe0775..5eb59215d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -74,6 +74,7 @@ commands: equal: [ windows, << parameters.os >> ] steps: - run: rm -rf /c/Go + - run: choco feature enable -n allowGlobalConfirmation - restore_cache: key: windows-go-<< parameters.cache_version >>-{{ checksum "go.sum" }} - run: 'sh ./scripts/installgo_windows.sh' diff --git a/scripts/installgo_windows.sh b/scripts/installgo_windows.sh index d52ae7207..35b231003 100644 --- a/scripts/installgo_windows.sh +++ b/scripts/installgo_windows.sh @@ -5,7 +5,6 @@ set -eux GO_VERSION="1.19.1" setup_go () { - choco feature enable -n allowGlobalConfirmation choco upgrade golang --allow-downgrade --version=${GO_VERSION} choco install make git config --system core.longpaths true