From 6577c523de3bedd8053d7fb7164af0984c799e51 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Wed, 21 Jan 2026 10:49:51 -0800 Subject: [PATCH] update update-majors.sh for use in CI --- hack/update-go-mod/update-majors.sh | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/hack/update-go-mod/update-majors.sh b/hack/update-go-mod/update-majors.sh index 5cfdc37ee..ae984668f 100755 --- a/hack/update-go-mod/update-majors.sh +++ b/hack/update-go-mod/update-majors.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Copyright 2024 the Pinniped contributors. All Rights Reserved. +# Copyright 2024-2026 the Pinniped contributors. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 set -euo pipefail @@ -46,20 +46,7 @@ done go mod tidy -if git diff --quiet; then - echo - echo "No changes." -else - echo - echo "Showing resulting diffs..." - git --no-pager diff - - echo - echo "Running unit tests..." - ./hack/module.sh units -fi - popd >/dev/null echo -echo "Done!" +echo "Done updating majors! Check for git diffs to see results."