diff --git a/templates/gitlab-ci-golang.yml b/templates/gitlab-ci-golang.yml
index 61b355311c4538e6a7feab3d6e6f34080a99aec2..fedf6fbcc672374ea83e2488f77a3cdb01d7db16 100644
--- a/templates/gitlab-ci-golang.yml
+++ b/templates/gitlab-ci-golang.yml
@@ -384,7 +384,7 @@ stages:
     paths:
       - $GO_PROJECT_DIR/.cache/
   before_script:
-    - *go-scripts
+    - !reference [.go-scripts]
     - |
       if command -v git > /dev/null
       then