mirror of https://github.com/knative/docs.git
upgrade to latest dependencies (#5755)
bumping knative.dev/hack 8834794...5deadde:
> 5deadde 🐛 Set latest release only when publishing to Github (# 346)
Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
parent
adf7258d29
commit
d3120a9de6
2
go.mod
2
go.mod
|
@ -14,7 +14,7 @@ require (
|
|||
google.golang.org/grpc v1.36.0
|
||||
gopkg.in/go-playground/webhooks.v3 v3.13.0
|
||||
gopkg.in/yaml.v2 v2.3.0
|
||||
knative.dev/hack v0.0.0-20231107173840-883479423aaa
|
||||
knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7
|
||||
)
|
||||
|
||||
require (
|
||||
|
|
4
go.sum
4
go.sum
|
@ -539,8 +539,8 @@ honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9
|
|||
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
honnef.co/go/tools v0.0.1-2020.1.5 h1:nI5egYTGJakVyOryqLs1cQO5dO0ksin5XXs2pspk75k=
|
||||
honnef.co/go/tools v0.0.1-2020.1.5/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
knative.dev/hack v0.0.0-20231107173840-883479423aaa h1:XVFqW2a8xvyo231TbVSD3i+580pVej9LbTSmYex6d1g=
|
||||
knative.dev/hack v0.0.0-20231107173840-883479423aaa/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
|
||||
knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7 h1:HXf7M7n9jwn+Hp904r0HXRSymf+DLXSciFpXVpCg+Bs=
|
||||
knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
|
||||
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
||||
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
|
||||
|
|
|
@ -658,13 +658,18 @@ function publish_artifacts() {
|
|||
|
||||
# Sets the github release with the highest semver to 'latest'
|
||||
function set_latest_to_highest_semver() {
|
||||
local last_version # don't combine with the line below, or $? will be 0
|
||||
if ! (( PUBLISH_TO_GITHUB )); then
|
||||
return 0
|
||||
fi
|
||||
echo "Setting latest release to highest semver"
|
||||
|
||||
local last_version release_id # don't combine with assignment else $? will be 0
|
||||
|
||||
last_version="$(hub_tool -p release | cut -d'-' -f2 | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+$'| sort -r -V | head -1)"
|
||||
if ! [[ $? -eq 0 ]]; then
|
||||
abort "cannot list releases"
|
||||
fi
|
||||
|
||||
local release_id # don't combine with the line below, or $? will be 0
|
||||
release_id="$(hub_tool api "/repos/${ORG_NAME}/${REPO_NAME}/releases/tags/knative-${last_version}" | jq .id)"
|
||||
if [[ $? -ne 0 ]]; then
|
||||
abort "cannot get relase id from github"
|
||||
|
@ -701,6 +706,8 @@ function main() {
|
|||
function_exists build_release || abort "function 'build_release()' not defined"
|
||||
[[ -x ${VALIDATION_TESTS} ]] || abort "test script '${VALIDATION_TESTS}' doesn't exist"
|
||||
|
||||
banner "Environment variables"
|
||||
env
|
||||
# Log what will be done and where.
|
||||
banner "Release configuration"
|
||||
if which gcloud &>/dev/null ; then
|
||||
|
|
|
@ -299,7 +299,7 @@ gopkg.in/go-playground/webhooks.v3/github
|
|||
gopkg.in/yaml.v2
|
||||
# honnef.co/go/tools v0.0.1-2020.1.5
|
||||
## explicit; go 1.11
|
||||
# knative.dev/hack v0.0.0-20231107173840-883479423aaa
|
||||
# knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7
|
||||
## explicit; go 1.18
|
||||
knative.dev/hack
|
||||
# go.opencensus.io => go.opencensus.io v0.20.2
|
||||
|
|
Loading…
Reference in New Issue