fix: default source installs to the host architecture

Installing from source on an arm64 host downloaded amd64 dependencies and built amd64 plugins, failing once `plugin:install` ran the first binary. The `TARGETARCH` and `GOARCH` make variables now default to the host architecture and remain overridable, and debian packages are labelled with the architecture they were built for. Closes #9217.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-11-06 17:11:28 -05:00
1 parent b8dda7e8fe
commit 825fa8968c
26 files changed
+81 -25

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
DOKKU_VERSION ?= master
TARGETARCH ?= amd64
TARGETARCH ?= $(HOST_ARCH)
GOARCH ?= $(TARGETARCH)
DOCKER_IMAGE_LABELER_URL ?= $(shell jq -r --arg name docker-image-labeler --arg arch $(TARGETARCH) '.dependencies[] | select(.name == $$name) | .urls[$$arch]' contrib/dependencies.json)
DOCKER_CONTAINER_HEALTHCHECKER_URL ?= $(shell jq -r --arg name docker-container-healthchecker --arg arch $(TARGETARCH) '.dependencies[] | select(.name == $$name) | .urls[$$arch]' contrib/dependencies.json)