From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 2/3] Go: Cleanup Go Path after build Date: Tue, 24 Dec 2019 12:58:53 +0000 Message-ID: <20191224125854.11552-2-michael.tremer@ipfire.org> In-Reply-To: <20191224125854.11552-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0030482332789394615==" List-Id: --===============0030482332789394615== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Go leaves temporary build files in the directory which we do not need and we should clean up after every build. Signed-off-by: Michael Tremer --- lfs/Config | 4 ++++ lfs/amazon-ssm-agent | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lfs/Config b/lfs/Config index f597b8c65..d17600820 100644 --- a/lfs/Config +++ b/lfs/Config @@ -115,6 +115,9 @@ ifeq "$(BUILD_ARCH)" "aarch64" GRUB_ARCH =3D arm64 endif =20 +# Go +export GOPATH =3D $(HOME)/gopath + ############################################################################= ### # Common Macro Definitions ############################################################################= ### @@ -156,6 +159,7 @@ define POSTBUILD @echo "Updating linker cache..." @type -p ldconfig >/dev/null && ldconfig || : @echo "Install done; saving file list to $(TARGET) ..." + @rm -rf $(GOPATH) @$(FIND_FILES) > $(DIR_SRC)/lsalrnew @diff $(DIR_SRC)/lsalr $(DIR_SRC)/lsalrnew | grep '^> ' | sed 's/^> //' > $= (TARGET)_diff @cp -f $(DIR_SRC)/lsalrnew $(DIR_SRC)/lsalr diff --git a/lfs/amazon-ssm-agent b/lfs/amazon-ssm-agent index da164ced8..b477690a4 100644 --- a/lfs/amazon-ssm-agent +++ b/lfs/amazon-ssm-agent @@ -37,8 +37,6 @@ PAK_VER =3D 1 =20 DEPS =3D "" =20 -export GOPATH =3D $(HOME)/gopath - DIR_BUILD =3D $(GOPATH)/src/github.com/aws/amazon-ssm-agent =20 ############################################################################= ### --=20 2.20.1 --===============0030482332789394615==--