Skip to content

Commit 693e73e

Browse files
Run hack generate tool directly (#1120)
Co-authored-by: Christoph Stäbler <cstabler@redhat.com>
1 parent 7f951ad commit 693e73e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

openshift/generate.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,7 @@ set -euo pipefail
44

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

7-
tmp_dir=$(mktemp -d)
8-
git clone --branch main https://github.com/openshift-knative/hack "$tmp_dir"
9-
10-
pushd "$tmp_dir"
11-
go install github.com/openshift-knative/hack/cmd/generate
12-
popd
13-
14-
rm -rf "$tmp_dir"
15-
16-
$(go env GOPATH)/bin/generate \
7+
GOFLAGS='' go run github.com/openshift-knative/hack/cmd/generate@latest \
178
--root-dir "${repo_root_dir}" \
189
--generators dockerfile \
1910
--additional-packages tzdata \

0 commit comments

Comments
 (0)