From 9480a3b5d3c23dad7a4e32f63e0112bc0ad4719b Mon Sep 17 00:00:00 2001 From: Patrick Cao Huu Thien Date: Fri, 10 Nov 2023 14:59:16 +0100 Subject: [PATCH] add go clean --- main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.tf b/main.tf index a5a5225..e66101d 100644 --- a/main.tf +++ b/main.tf @@ -53,6 +53,10 @@ resource "null_resource" "fail2ban_exporter" { "go build -v", "echo '# install fail2ban_exporter'", "install -Dm775 fail2ban-prometheus-exporter /usr/sbin/fail2ban_exporter", + "echo '# clean go cache'", + "go env GOCACHE", + "go clean -modcache", + # # "echo '# enable service fail2ban_exporter'", "install -Dm775 /tmp/fail2ban_exporter.initd /etc/init.d/fail2ban_exporter",