Skip to content

Commit

Permalink
mackerel-agent: add cleaning up modules for golang
Browse files Browse the repository at this point in the history
delete $GOPATH/pkg/mod/*

ref: golang/go#27455
  • Loading branch information
musashino205 committed Sep 7, 2019
1 parent 2f1abba commit 7f5dbb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mackerel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7f5dbb1

Please sign in to comment.