From 2ba378904d3cd424e986db393bc721f87aced446 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Tue, 28 Mar 2023 15:15:27 -0500 Subject: [PATCH] Bump dependencies to latest Signed-off-by: Joshua T Casey --- go.mod | 2 +- hack/update-go-mod/update-go-mod.sh | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 53c4efef..73b262c4 100644 --- a/go.mod +++ b/go.mod @@ -52,7 +52,7 @@ require ( k8s.io/gengo v0.0.0-20230306165830-ab3349d207d4 k8s.io/klog/v2 v2.90.1 k8s.io/kube-aggregator v0.26.3 - k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a + k8s.io/kube-openapi v0.0.0-20230327201221-f5883ff37f0c k8s.io/utils v0.0.0-20230313181309-38a27ef9d749 sigs.k8s.io/yaml v1.3.0 ) diff --git a/hack/update-go-mod/update-go-mod.sh b/hack/update-go-mod/update-go-mod.sh index 7abde96c..75ea7890 100755 --- a/hack/update-go-mod/update-go-mod.sh +++ b/hack/update-go-mod/update-go-mod.sh @@ -6,9 +6,14 @@ set -euo pipefail SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +ROOT_DIR="$SCRIPT_DIR/../.." -GO_MOD="${SCRIPT_DIR}/../../go.mod" +GO_MOD="${ROOT_DIR}/go.mod" pushd "${SCRIPT_DIR}" > /dev/null - go run . "${GO_MOD}" + script=$(go run . "${GO_MOD}") +popd > /dev/null + +pushd "${ROOT_DIR}" > /dev/null + eval "$script" popd > /dev/null