CI: Fix setup-go warnings

pull/18673/head
Steven Powell 2024-04-17 18:09:58 -07:00 committed by Medya Ghazizadeh
parent 98a2b9fe2f
commit 3aca5cebb1
52 changed files with 13 additions and 63 deletions

View File

@ -24,7 +24,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Download Dependencies
run: go mod download
- name: Build Binaries
@ -51,7 +50,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Install libvirt
run: |
sudo apt-get update
@ -70,7 +68,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Install libvirt
run: |
sudo apt-get update

View File

@ -19,7 +19,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Generate Docs
id: gendocs
run: |

View File

@ -38,7 +38,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Download Dependencies
run: go mod download
- name: Build Binaries
@ -64,6 +63,7 @@ jobs:
steps:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
- name: Install tools
shell: bash

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Update Leaderboard
id: leaderboard
run: |

View File

@ -28,7 +28,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Download Dependencies
run: go mod download
- name: Build Binaries
@ -54,7 +53,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Download Dependencies
run: go mod download
- name: Build Binaries
@ -68,7 +66,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Install libvirt
run: |
sudo apt-get update
@ -87,7 +84,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Install libvirt
run: |
sudo apt-get update
@ -134,6 +130,7 @@ jobs:
echo "--------------------------"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
- name: Install gopogh
shell: bash
@ -232,6 +229,7 @@ jobs:
echo "--------------------------"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
- name: Install gopogh
shell: bash
@ -334,6 +332,7 @@ jobs:
echo "--------------------------"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
- name: Install gopogh
shell: bash
@ -419,6 +418,7 @@ jobs:
kubectl version --client=true
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
- name: Install gopogh
shell: bash
@ -516,6 +516,7 @@ jobs:
kubectl version --client=true
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
# conntrack is required for kubernetes 1.18 and higher
# socat is required for kubectl port forward which is used in some tests such as validateHelmTillerAddon

View File

@ -23,9 +23,8 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Run Benchmark
run: |
./hack/benchmark/image-build/publish-chart.sh

View File

@ -26,7 +26,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Download Dependencies
run: go mod download
- name: Build Binaries
@ -52,7 +51,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Download Dependencies
run: go mod download
- name: Build Binaries
@ -66,7 +64,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Install libvirt
run: |
sudo apt-get update
@ -85,7 +82,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Install libvirt
run: |
sudo apt-get update
@ -132,6 +128,7 @@ jobs:
echo "--------------------------"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
- name: Install gopogh
shell: bash
@ -231,6 +228,7 @@ jobs:
echo "--------------------------"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
- name: Install gopogh
shell: bash
@ -348,6 +346,7 @@ jobs:
echo "--------------------------"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
- name: Install gopogh
shell: bash
@ -451,6 +450,7 @@ jobs:
echo "--------------------------"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
- name: Install gopogh
shell: bash
@ -537,6 +537,7 @@ jobs:
kubectl version --client=true
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
- name: Install gopogh
shell: bash
@ -635,6 +636,7 @@ jobs:
kubectl version --client=true
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
cache: false
go-version: ${{env.GO_VERSION}}
# conntrack is required for kubernetes 1.18 and higher
# socat is required for kubectl port forward which is used in some tests such as validateHelmTillerAddon

View File

@ -26,8 +26,6 @@ jobs:
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Build
run: make

View File

@ -23,7 +23,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Benchmark time-to-k8s for Docker driver with Docker runtime
run: |
./hack/benchmark/time-to-k8s/public-chart/public-chart.sh docker docker
@ -48,7 +47,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Disable firewall
run: |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off

View File

@ -19,7 +19,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: time-to-k8s Benchmark
id: timeToK8sBenchmark
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Install libvirt
run: |
sudo apt-get update

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump buildkit Version
id: bumpBuildkit
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump calico version
id: bumpCalico
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump cloud-spanner-emulator version
id: bumpCloudSpannerEmulator
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump cni-plugins Version
id: bumpCNIPlugins
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump containerd Version
id: bumpContainerd
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump cri-dockerd version
id: bumpCriDockerd
run: |

View File

@ -19,7 +19,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump cri-o Version
id: bumpCrio
run: |

View File

@ -19,7 +19,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump crictl Version
id: bumpCrictl
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump crun Version
id: bumpCrun
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump docker-buildx Version
id: bumpDockerBuildx
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump docker Version
id: bumpDocker
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump Docsy version
id: bumpDocsy
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump flannel version
id: bumpFlannel
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump gcp-auth version
id: bumpGCPAuth
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump gh version
id: bumpGh
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump go-github version
id: bumpGoGithub
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump Golang Versions
id: bumpGolang
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump Golint Versions
id: bumpGolint
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump gopogh Versions
id: bumpGopogh
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump Gotestsum Versions
id: bumpGotestsum
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump Hugo version
id: bumpHugo
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump ingress version
id: bumpIngress
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump inspektor-gadget version
id: bumpInspektorGadget
run: |

View File

@ -14,7 +14,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump versions
id: bumpVersions
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump istio-operator version
id: bumpIstioOperator
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump Kubernetes Versions
id: bumpk8s
run: |

View File

@ -17,7 +17,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump kindnetd version
id: bumpKindnetd
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump kong-ingress-controller version
id: bumpKongIngressController
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump kong version
id: bumpKong
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump Kubeadm Constants for Kubernetes Images
id: bumpKubeadmConsts
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump Kubectl version
id: bumpKubectl
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump Kubernetes versions list
id: bumpKubernetesVersionsList
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump metrics-server version
id: bumpMetricsServer
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump nerdctl Version
id: bumpNerdctl
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump nerdctld Version
id: bumpNerdctld
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump nvidia-device-plugin version
id: bumpNvidiaDevicePlugin
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump registry version
id: bumpRegistry
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump runc Version
id: bumpRunc
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump site node version
id: bumpSiteNode
run: |

View File

@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Bump Ubuntu version
id: bumpUbuntu
run: |

View File

@ -23,7 +23,6 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: ./go.sum
- name: Update Yearly Leaderboard
id: yearlyLeaderboard
run: |