diff --git a/debian/rules b/debian/rules
index 6965557ee62d893388b05057deabf23d85b15420..a74bdf68c02e3cdd173cd509f2af99b664c26b2b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,7 @@
 
 export DH_VERBOSE := 1
 export DH_GOLANG_EXCLUDES := vendor
-export DH_GOLANG_INSTALL_ALL := 1
-export GO111MODULE := off
-export GOCACHE := on
+export GO111MODULE := auto
 
 %:
 	dh $@ --with=golang