diff --git a/debian/changelog b/debian/changelog index e37fabf8e281..6bd4eb7bedbd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +k3s (1.27.2+k3s1+mel4) UNRELEASED; urgency=medium + + * set HOME in rules to allow successful go builds + + -- Joe MacDonald Fri, 14 Jul 2023 16:06:00 -0400 + k3s (1.27.2+k3s1+mel3) UNRELEASED; urgency=medium * Add git to Build-Depends since debian/source/format requires it diff --git a/debian/rules b/debian/rules index 462143ed59fa..12d2b28c22a5 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,11 @@ # make debhelper commands more verbose # export DH_OPTIONS = -v export USE_DAPPER ?= 0 +# set HOME since go requires GOCACHE be set and the default ($HOME/.go-cache) +# will cause a build failure with sbuild. Setting $HOME to $(CURDIR) is a +# default solution to this problem for some packages: +# https://lists.debian.org/debian-mentors/2018/08/msg00003.html +export HOME = $(CURDIR) %: dh $@