Skip to content

Commit e3db912

Browse files
upgrade to latest dependencies (knative-extensions#1209)
bumping knative.dev/hack 8834794...5deadde: > 5deadde 🐛 Set latest release only when publishing to Github (# 346) Signed-off-by: Knative Automation <automation@knative.team>
1 parent 1e021c8 commit e3db912

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require (
2020
k8s.io/api v0.28.0
2121
k8s.io/apimachinery v0.28.0
2222
k8s.io/client-go v0.28.0
23-
knative.dev/hack v0.0.0-20231107173840-883479423aaa
23+
knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7
2424
knative.dev/networking v0.0.0-20231108061732-e0bee342a97e
2525
knative.dev/pkg v0.0.0-20231108014432-35011d423d4b
2626
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,8 @@ k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f h1:2kWPakN3i/k81b0gvD5C5F
685685
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f/go.mod h1:byini6yhqGC14c3ebc/QwanvYwhuMWF6yz2F8uwW8eg=
686686
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 h1:qY1Ad8PODbnymg2pRbkyMT/ylpTrCM8P2RJ0yroCyIk=
687687
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
688-
knative.dev/hack v0.0.0-20231107173840-883479423aaa h1:XVFqW2a8xvyo231TbVSD3i+580pVej9LbTSmYex6d1g=
689-
knative.dev/hack v0.0.0-20231107173840-883479423aaa/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
688+
knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7 h1:HXf7M7n9jwn+Hp904r0HXRSymf+DLXSciFpXVpCg+Bs=
689+
knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
690690
knative.dev/networking v0.0.0-20231108061732-e0bee342a97e h1:IFZuDN6IA3lzGt3zVgQ1VbTPSdDcCkdvD0SmxZ3blBM=
691691
knative.dev/networking v0.0.0-20231108061732-e0bee342a97e/go.mod h1:cu01aODvz01sLC80d7Md6M8pSFi7RMurQnCubeeVH40=
692692
knative.dev/pkg v0.0.0-20231108014432-35011d423d4b h1:WrDo9M6vkJ4xnTBodWOT2koXjKqr7dOqJH4RWBq4kBw=

vendor/knative.dev/hack/release.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,13 +658,18 @@ function publish_artifacts() {
658658

659659
# Sets the github release with the highest semver to 'latest'
660660
function set_latest_to_highest_semver() {
661-
local last_version # don't combine with the line below, or $? will be 0
661+
if ! (( PUBLISH_TO_GITHUB )); then
662+
return 0
663+
fi
664+
echo "Setting latest release to highest semver"
665+
666+
local last_version release_id # don't combine with assignment else $? will be 0
667+
662668
last_version="$(hub_tool -p release | cut -d'-' -f2 | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+$'| sort -r -V | head -1)"
663669
if ! [[ $? -eq 0 ]]; then
664670
abort "cannot list releases"
665671
fi
666672

667-
local release_id # don't combine with the line below, or $? will be 0
668673
release_id="$(hub_tool api "/repos/${ORG_NAME}/${REPO_NAME}/releases/tags/knative-${last_version}" | jq .id)"
669674
if [[ $? -ne 0 ]]; then
670675
abort "cannot get relase id from github"
@@ -701,6 +706,8 @@ function main() {
701706
function_exists build_release || abort "function 'build_release()' not defined"
702707
[[ -x ${VALIDATION_TESTS} ]] || abort "test script '${VALIDATION_TESTS}' doesn't exist"
703708

709+
banner "Environment variables"
710+
env
704711
# Log what will be done and where.
705712
banner "Release configuration"
706713
if which gcloud &>/dev/null ; then

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ k8s.io/utils/net
918918
k8s.io/utils/pointer
919919
k8s.io/utils/strings/slices
920920
k8s.io/utils/trace
921-
# knative.dev/hack v0.0.0-20231107173840-883479423aaa
921+
# knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7
922922
## explicit; go 1.18
923923
knative.dev/hack
924924
# knative.dev/networking v0.0.0-20231108061732-e0bee342a97e

0 commit comments

Comments
 (0)