Skip to content

Commit

Permalink
Prevent update-deps.sh from creating vendor dir
Browse files Browse the repository at this point in the history
We no longer keep vendored files in CA repo.
  • Loading branch information
x13n committed Oct 18, 2024
1 parent 3a29dc2 commit 3b89cd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cluster-autoscaler/hack/update-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ cluster_autoscaler:list_mods() {
k8s_version="${1:-${VERSION}}"

if [ -z "${k8s_version}" ]; then
echo "Usage: hack/update-vendor.sh <k8s version> <k8s version for apis> <k8s fork:[email protected]:kubernetes/kubernetes.git>"
echo "Usage: hack/update-deps.sh <k8s version> <k8s version for apis> <k8s fork:[email protected]:kubernetes/kubernetes.git>"
exit 1
fi
cluster_autoscaler:list_mods:init "${k8s_version}" > /dev/null
Expand Down Expand Up @@ -97,7 +97,6 @@ cluster_autoscaler:update_deps() {
if [ "${pkg}" = "./cluster-autoscaler" ]; then
go get "k8s.io/kubernetes@v${k8s_version}"
go mod tidy
go mod vendor
"${SED}" -i "s|\(const ClusterAutoscalerVersion = \)\".*\"|\1\"${k8s_version}\"|" "version/version.go"
fi

Expand Down

0 comments on commit 3b89cd5

Please sign in to comment.