Merge pull request #47298 from thaJeztah/25.0_backport_rm_dash_rf

[25.0 backport] Assert temp output directory is not an empty string
This commit is contained in:
Sebastiaan van Stijn 2024-02-01 19:13:50 +01:00 committed by GitHub
commit cf03e96354
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -250,6 +250,9 @@ swagger-docs: ## preview the API documentation
.PHONY: generate-files
generate-files:
$(eval $@_TMP_OUT := $(shell mktemp -d -t moby-output.XXXXXXXXXX))
ifeq ($($@_TMP_OUT),)
$(error Could not create temp directory.)
endif
$(BUILD_CMD) --target "update" \
--output "type=local,dest=$($@_TMP_OUT)" \
--file "./hack/dockerfiles/generate-files.Dockerfile" .