Skip to content

Commit

Permalink
Run hack generate tool directly (#1118)
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Stäbler <cstabler@redhat.com>
  • Loading branch information
openshift-cherrypick-robot and creydr authored Feb 19, 2025
1 parent 5ecba15 commit be7579a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions openshift/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +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 env GOPATH)/bin/generate \
GOFLAGS='' go run github.com/openshift-knative/hack/cmd/generate@latest \
--root-dir "${repo_root_dir}" \
--generators dockerfile \
--additional-packages tzdata \
Expand Down

0 comments on commit be7579a

Please sign in to comment.