Packages: making unit-go architecture independent.
To support Go modules, the unit-go module should be platform independent. All platform-dependent logic is moved to libunit, so the unit-dev package should be installed before building unit-go.
This commit is contained in:
@@ -22,7 +22,7 @@ RUN set -x \
|
||||
test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; \
|
||||
apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* \
|
||||
&& dpkgArch="$(dpkg --print-architecture)" \
|
||||
&& unitPackages="unit=${UNIT_VERSION} unit-go1.11=${UNIT_VERSION} gcc" \
|
||||
&& unitPackages="unit=${UNIT_VERSION} unit-go=${UNIT_VERSION} gcc" \
|
||||
&& case "$dpkgArch" in \
|
||||
amd64|i386) \
|
||||
# arches officialy built by upstream
|
||||
|
||||
@@ -19,7 +19,7 @@ MODULE_python2.7="unit=$${UNIT_VERSION} unit-python2.7=$${UNIT_VERSION}"
|
||||
|
||||
MODULE_python3.7="unit=$${UNIT_VERSION} unit-python3.7=$${UNIT_VERSION}"
|
||||
|
||||
MODULE_go1.11-dev="unit=$${UNIT_VERSION} unit-go1.11=$${UNIT_VERSION} gcc"
|
||||
MODULE_go1.11-dev="unit=$${UNIT_VERSION} unit-go=$${UNIT_VERSION} gcc"
|
||||
|
||||
MODULE_perl5.28="unit=$${UNIT_VERSION} unit-perl=$${UNIT_VERSION}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user