From 7f5dbb1dc00a21dd56c2a749cba66f464239f5bc Mon Sep 17 00:00:00 2001 From: INAGAKI Hiroshi Date: Sun, 8 Sep 2019 00:46:53 +0900 Subject: [PATCH] mackerel-agent: add cleaning up modules for golang delete $GOPATH/pkg/mod/* ref: https://github.com/golang/go/issues/27455 --- mackerel/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mackerel/Makefile b/mackerel/Makefile index a16dca4..3dee0dc 100644 --- a/mackerel/Makefile +++ b/mackerel/Makefile @@ -116,6 +116,7 @@ define Build/Compile $(call GoPackage/BuildEnvironment) $(call GoPackage/Environment) \ make CC="$(HOSTCC)" -C $(PKG_BUILD_DIR) build upx $(COMPRESSION_PARAM) $(PKG_BUILD_DIR)/build/mackerel-agent + go clean -modcache endef define Package/mackerel-agent/install @@ -141,6 +142,7 @@ define Package/mackerel-plugins/compile && $(call GoPackage/BuildEnvironment) $(call GoPackage/Environment) \ go build -o $(PKG_BUILD_DIR)/plugins/mackerel-plugin-$(1) ) upx --best $(PKG_BUILD_DIR)/plugins/mackerel-plugin-$(1) + go clean -modcache endef define Package/mackerel-plugins/install