From f44b06c6011769d5e9d9afd45ce4ab377673beab Mon Sep 17 00:00:00 2001 From: Bastien Gerard Date: Fri, 18 Mar 2022 22:47:40 +0100 Subject: [PATCH 1/2] Document issue with gitlab non-constant build location clashing with pre-commit cache that expects a constant location --- sections/advanced.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sections/advanced.md b/sections/advanced.md index 1dab84d9..3693781c 100644 --- a/sections/advanced.md +++ b/sections/advanced.md @@ -742,6 +742,9 @@ my_job: - ${PRE_COMMIT_HOME} ``` +pre-commit's cache requires to be served from a constant location between the different builds. This isn't the default when using k8s runners +on Gitlab. In case you face the error `InvalidManifestError`, set `builds_dir` to something static e.g `builds_dir = "/builds"` in your `[[runner]]` config + ### travis-ci example ```yaml From b4100d325d81740001cd2601ef2e7faa232b0504 Mon Sep 17 00:00:00 2001 From: Bastien Gerard Date: Sat, 19 Mar 2022 09:45:29 +0100 Subject: [PATCH 2/2] fix minor typo --- sections/advanced.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sections/advanced.md b/sections/advanced.md index 3693781c..d67f60d0 100644 --- a/sections/advanced.md +++ b/sections/advanced.md @@ -743,7 +743,7 @@ my_job: ``` pre-commit's cache requires to be served from a constant location between the different builds. This isn't the default when using k8s runners -on Gitlab. In case you face the error `InvalidManifestError`, set `builds_dir` to something static e.g `builds_dir = "/builds"` in your `[[runner]]` config +on GitLab. In case you face the error `InvalidManifestError`, set `builds_dir` to something static e.g `builds_dir = "/builds"` in your `[[runner]]` config ### travis-ci example