Skip to content

Commit

Permalink
Use @latest tag for go install
Browse files Browse the repository at this point in the history
  • Loading branch information
mgencur committed Sep 13, 2024
1 parent fdfdc70 commit 52ad3b1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions openshift/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@ set -euo pipefail

repo_root_dir=$(dirname "$(realpath "${BASH_SOURCE[0]}")")/..

tmp_dir=$(mktemp -d)
git clone --branch main https://github.com/openshift-knative/hack "$tmp_dir"

pushd "$tmp_dir"
go install github.com/openshift-knative/hack/cmd/generate
popd

rm -rf "$tmp_dir"
go install github.com/openshift-knative/hack/cmd/generate@latest

$(go env GOPATH)/bin/generate \
--root-dir "${repo_root_dir}" \
Expand Down

0 comments on commit 52ad3b1

Please sign in to comment.