Skip to content

Commit

Permalink
Use go_run instead of run_go_tool (#825)
Browse files Browse the repository at this point in the history
* Use go_run instead of run_go_tool

As per the error message whhen running update-codegen.sh

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!! WARN: The "run_go_tool" function is deprecated. Use "go_run" instead. !!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

run_go_toolthis has been deprecated in favor of go_run, we should use the new
function.

* drop extra argument

---------

Co-authored-by: dprotaso <dprotaso@gmail.com>
  • Loading branch information
chmouel and dprotaso committed Jan 9, 2024
1 parent ee786c4 commit 614cf33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ source $(dirname $0)/../vendor/knative.dev/hack/codegen-library.sh
export PATH="$GOBIN:$PATH"

function run_yq() {
run_go_tool github.com/mikefarah/yq/v4@v4.23.1 yq "$@"
go_run github.com/mikefarah/yq/v4@v4.23.1 "$@"
}

echo "=== Update Codegen for ${MODULE_NAME}"
Expand Down

0 comments on commit 614cf33

Please sign in to comment.