Skip to content

Commit e5bb2e7

Browse files
committed
1 parent 0e5fc7c commit e5bb2e7

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ require (
1313
knative.dev/pkg v0.0.0-20250312035536-b7bbf4be5dbd
1414
)
1515

16+
// TODO: Remove after https://github.com/knative/hack/pull/420 is merged
17+
replace knative.dev/hack => github.com/cardil/knative-hack v0.0.0-20250318132007-52bf110a5b9b
18+
1619
require (
1720
contrib.go.opencensus.io/exporter/ocagent v0.7.1-0.20200907061046-05415f1de66d // indirect
1821
contrib.go.opencensus.io/exporter/prometheus v0.4.2 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM
5252
github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
5353
github.com/blendle/zapdriver v1.3.1 h1:C3dydBOWYRiOk+B8X9IVZ5IOe+7cl+tGOexN4QqHfpE=
5454
github.com/blendle/zapdriver v1.3.1/go.mod h1:mdXfREi6u5MArG4j9fewC+FGnXaBR+T4Ox4J2u4eHCc=
55+
github.com/cardil/knative-hack v0.0.0-20250318132007-52bf110a5b9b h1:A143Zk0iqoTrXIEvW7I9QdVRkE6vFZUHzjIoCYM5D/0=
56+
github.com/cardil/knative-hack v0.0.0-20250318132007-52bf110a5b9b/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
5557
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
5658
github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g=
5759
github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw=
@@ -685,8 +687,6 @@ k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 h1:hcha5B1kVACrLujCKLbr8X
685687
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7/go.mod h1:GewRfANuJ70iYzvn+i4lezLDAFzvjxZYK1gn1lWcfas=
686688
k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJJI8IUa1AmH/qa0=
687689
k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
688-
knative.dev/hack v0.0.0-20250314171439-742e1e50da78 h1:K3cI9khmEm63uwnm2S6ZFq1r/nsJFDXtUHqPnyKdnCM=
689-
knative.dev/hack v0.0.0-20250314171439-742e1e50da78/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
690690
knative.dev/pkg v0.0.0-20250312035536-b7bbf4be5dbd h1:KXG6bACwjKSZcT0JxyQDVYLcDPSip+7l6sVULeITi7k=
691691
knative.dev/pkg v0.0.0-20250312035536-b7bbf4be5dbd/go.mod h1:OuszA8pcsXmO+Pp4QCtD10ph6tjRPFN+LrF/XgAMDb8=
692692
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=

vendor/knative.dev/hack/boilerplate.go.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77

8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99

1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,

vendor/knative.dev/hack/codegen-library.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ function restore-changes-if-its-copyright-year-only() {
138138
git diff --name-only > "$difflist"
139139
while read -r file; do
140140
# check if the file contains just the change in the boilerplate year
141-
if [ "$(LANG=C git diff --exit-code --shortstat -- "$file")" = ' 1 file changed, 1 insertion(+), 1 deletion(-)' ] && \
142-
[[ "$(git diff --exit-code -U1 -- "$file" | grep -Ec '^[+-]\s*[*#]?\s*Copyright 2[0-9]{3}')" -eq 2 ]]; then
141+
if [ "$(LANG=C git diff --ignore-space-change --exit-code --shortstat -- "$file")" = ' 1 file changed, 1 insertion(+), 1 deletion(-)' ] && \
142+
[[ "$(git diff --ignore-space-change --exit-code -U1 -- "$file" | grep -Ec '^[+-]\s*[*#]?\s*Copyright 2[0-9]{3}')" -eq 2 ]]; then
143143
# restore changes to that file
144144
git checkout -- "$file"
145145
fi

vendor/modules.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ k8s.io/utils/net
873873
k8s.io/utils/pointer
874874
k8s.io/utils/ptr
875875
k8s.io/utils/trace
876-
# knative.dev/hack v0.0.0-20250314171439-742e1e50da78
876+
# knative.dev/hack v0.0.0-20250314171439-742e1e50da78 => github.com/cardil/knative-hack v0.0.0-20250318132007-52bf110a5b9b
877877
## explicit; go 1.21
878878
knative.dev/hack
879879
# knative.dev/pkg v0.0.0-20250312035536-b7bbf4be5dbd
@@ -949,3 +949,4 @@ sigs.k8s.io/structured-merge-diff/v4/value
949949
## explicit; go 1.12
950950
sigs.k8s.io/yaml
951951
sigs.k8s.io/yaml/goyaml.v2
952+
# knative.dev/hack => github.com/cardil/knative-hack v0.0.0-20250318132007-52bf110a5b9b

0 commit comments

Comments
 (0)