mirror of
https://github.com/containers/podman.git
synced 2025-09-09 17:42:22 +08:00
simplify bindings generation
Run `go generate ./pkg/bindings/...` once for all bindings instead of generating them separately. This should speed up bindings generation as a given package is visited only once, and it fixes #8989 by dropping the use of pushd and popd. Fixes: #8989 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
10
Makefile
10
Makefile
@ -462,15 +462,7 @@ podman-remote-%-release:
|
||||
BINDINGS_SOURCE = $(wildcard pkg/bindings/**/types.go)
|
||||
.generate-bindings: $(BINDINGS_SOURCE)
|
||||
ifneq ($(shell uname -s), Darwin)
|
||||
for i in $(BINDINGS_SOURCE); do \
|
||||
dirname=$$(dirname $${i}); \
|
||||
shortname=$$(basename $${dirname}); \
|
||||
pushd $${dirname}>/dev/null; \
|
||||
echo $${dirname}; \
|
||||
echo $(GO) generate; \
|
||||
$(GO) generate -mod=vendor; \
|
||||
popd > /dev/null; \
|
||||
done;
|
||||
$(GO) generate -mod=vendor ./pkg/bindings/... ;
|
||||
endif
|
||||
touch .generate-bindings
|
||||
|
||||
|
Reference in New Issue
Block a user