Skip to content

Commit 2b10141

Browse files
upgrade to latest dependencies (#6647)
bumping knative.dev/hack bf6758c...c985ed3: > c985ed3 [release-1.21] Add env var to pass extra flag to license check (# 471) > e37ec67 Bump go-licenses to v2.0.1 release (# 468) Signed-off-by: Knative Automation <automation@knative.team>
1 parent 611e2ff commit 2b10141

4 files changed

Lines changed: 18 additions & 11 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.24.0
55
require (
66
github.com/google/go-github/v32 v32.1.0
77
gopkg.in/yaml.v2 v2.3.0
8-
knative.dev/hack v0.0.0-20260120115810-bf6758cba446
8+
knative.dev/hack v0.0.0-20260420222011-c985ed3cefe8
99
)
1010

1111
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8X
2323
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2424
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
2525
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
26-
knative.dev/hack v0.0.0-20260120115810-bf6758cba446 h1:Y8raYHIuAL9/gUKGYD9/dD+EqUTmrpqVDowzfUVSlGs=
27-
knative.dev/hack v0.0.0-20260120115810-bf6758cba446/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0=
26+
knative.dev/hack v0.0.0-20260420222011-c985ed3cefe8 h1:IrUBuFRxzqUm+f//hY6XGPzXozcoXD/dSsqcid84/Eg=
27+
knative.dev/hack v0.0.0-20260420222011-c985ed3cefe8/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0=

vendor/knative.dev/hack/library.sh

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ if [[ ! -v GOPATH ]]; then
3535
fi
3636
fi
3737

38+
# Pinned tool versions
39+
readonly GUM_VERSION="v0.14.1"
40+
readonly GOTESTSUM_VERSION="v1.13.0"
41+
readonly GOTESTFMT_VERSION="v2.5.0"
42+
readonly TERMINAL_TO_HTML_VERSION="v3.10.0"
43+
readonly GO_LICENSES_VERSION="v2.0.1"
44+
3845
# Useful environment variables
3946
[[ -v PROW_JOB_ID ]] && IS_PROW=1 || IS_PROW=0
4047
readonly IS_PROW
@@ -265,7 +272,7 @@ function gum_banner() {
265272

266273
# Simple info banner for logging purposes.
267274
function gum_style() {
268-
go_run github.com/charmbracelet/gum@v0.14.1 style "$@"
275+
go_run "github.com/charmbracelet/gum@${GUM_VERSION}" style "$@"
269276
}
270277

271278
# Checks whether the given function exists.
@@ -588,7 +595,7 @@ function report_go_test() {
588595
logfile="${logfile/.xml/.jsonl}"
589596
echo "Running go test with args: ${go_test_args[*]}"
590597
local gotest_retcode=0
591-
go_run gotest.tools/gotestsum@v1.13.0 \
598+
go_run "gotest.tools/gotestsum@${GOTESTSUM_VERSION}" \
592599
--format "${GO_TEST_VERBOSITY:-testname}" \
593600
--junitfile "${xml}" \
594601
--junitfile-testsuite-name relative \
@@ -601,14 +608,14 @@ function report_go_test() {
601608
echo "Test log (JSONL) written to ${logfile}"
602609

603610
ansilog="${logfile/.jsonl/-ansi.log}"
604-
go_run github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.5.0 \
611+
go_run "github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@${GOTESTFMT_VERSION}" \
605612
-input "${logfile}" \
606613
-showteststatus \
607614
-nofail > "$ansilog"
608615
echo "Test log (ANSI) written to ${ansilog}"
609616

610617
htmllog="${logfile/.jsonl/.html}"
611-
go_run github.com/buildkite/terminal-to-html/v3/cmd/terminal-to-html@v3.10.0 \
618+
go_run "github.com/buildkite/terminal-to-html/v3/cmd/terminal-to-html@${TERMINAL_TO_HTML_VERSION}" \
612619
--preview < "$ansilog" > "$htmllog"
613620
echo "Test log (HTML) written to ${htmllog}"
614621

@@ -921,10 +928,10 @@ function run_kntest() {
921928
}
922929

923930
# Run go-licenses to check for forbidden licenses.
931+
# Extra flags can be passed via the GO_LICENSES_FLAGS environment variable.
924932
function check_licenses() {
925-
# Check that we don't have any forbidden licenses.
926-
go_run github.com/google/go-licenses@v1.6.0 \
927-
check "${REPO_ROOT_DIR}/..." || \
933+
go_run "github.com/google/go-licenses/v2@${GO_LICENSES_VERSION}" \
934+
check ${GO_LICENSES_FLAGS:-} "${REPO_ROOT_DIR}/..." || \
928935
{ echo "--- FAIL: go-licenses failed the license check"; return 1; }
929936
}
930937

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ golang.org/x/crypto/openpgp/s2k
2222
# gopkg.in/yaml.v2 v2.3.0
2323
## explicit
2424
gopkg.in/yaml.v2
25-
# knative.dev/hack v0.0.0-20260120115810-bf6758cba446
25+
# knative.dev/hack v0.0.0-20260420222011-c985ed3cefe8
2626
## explicit; go 1.24
2727
knative.dev/hack
2828
# go.opencensus.io => go.opencensus.io v0.20.2

0 commit comments

Comments
 (0)