From c3b016efd5d9e1ded8cf324d5cde88315a60c781 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Fri, 10 Nov 2023 14:13:16 -0500 Subject: [PATCH] Remove dangling upgrade external plugins script --- scripts/upgrade_plugins.sh | 68 -------------------------------------- 1 file changed, 68 deletions(-) delete mode 100755 scripts/upgrade_plugins.sh diff --git a/scripts/upgrade_plugins.sh b/scripts/upgrade_plugins.sh deleted file mode 100755 index 961f8ed804d..00000000000 --- a/scripts/upgrade_plugins.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/zsh -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 - - -## This script is to be run before a Packer release in order to update -## all vendored plugins to the latest available release. -## The SDK is included in the plugin list and will be upgraded as well if a -## newest version is available. -## This script should be run in packer's root. - -declare -a plugins=( - "hashicorp/packer-plugin-alicloud" - "hashicorp/packer-plugin-amazon" - "hashicorp/packer-plugin-ansible" - "hashicorp/packer-plugin-azure" - "hashicorp/packer-plugin-chef" - "hashicorp/packer-plugin-cloudstack" - "hashicorp/packer-plugin-converge" - "digitalocean/packer-plugin-digitalocean" - "hashicorp/packer-plugin-docker" - "hashicorp/packer-plugin-googlecompute" - "hashicorp/packer-plugin-hcloud" - "hashicorp/packer-plugin-hyperone" - "hashicorp/packer-plugin-hyperv" - "hashicorp/packer-plugin-jdcloud" - "hashicorp/packer-plugin-linode" - "hashicorp/packer-plugin-lxc" - "hashicorp/packer-plugin-lxd" - "hashicorp/packer-plugin-ncloud" - "hashicorp/packer-plugin-openstack" - "hashicorp/packer-plugin-oneandone" - "hashicorp/packer-plugin-parallels" - "hashicorp/packer-plugin-profitbricks" - "hashicorp/packer-plugin-proxmox" - "hashicorp/packer-plugin-puppet" - "hashicorp/packer-plugin-qemu" - "hashicorp/packer-plugin-sdk" - "hashicorp/packer-plugin-tencentcloud" - "hashicorp/packer-plugin-triton" - "hashicorp/packer-plugin-ucloud" - "hashicorp/packer-plugin-vagrant" - "hashicorp/packer-plugin-virtualbox" - "hashicorp/packer-plugin-vmware" - "hashicorp/packer-plugin-vsphere" - "hashicorp/packer-plugin-yandex" -) - -## now loop through the above plugin array -## update the plugins and the SDK to the latest available version -for i in "${plugins[@]}" -do - happy=false - while ! $happy - do - echo "upgrading $i" - output=$(go get -d github.com/$i) - happy=true - if [[ $output == *"443: Connection refused"* ]]; then - echo "Try again after 5 seconds" - sleep 5 - happy=false - fi - done - sleep 1 -done - -go mod tidy -compat=1.18