Skip to content

Commit 717f0aa

Browse files
committed
Fix the GitLab CI cache for pip.
The pip cache dir is normally: PIP_CACHE_DIR = XDG_CACHE_HOME + /pip This commit fixes the PIP_CACHE_DIR to be in the local project .cache/pip subdirectory. Also see: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/22211
1 parent 428b03c commit 717f0aa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Changelog
44
6.2.6 (unreleased)
55
------------------
66

7+
- Fix the GitLab CI cache for pip.
8+
[thet]
9+
710
- mockup_pattern: Fix .prettierignore file to not exclude files within the /resources directory.
811
[thet]
912

bobtemplates/plone/addon/.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ image: python:3.7-buster
66
# Change pip's cache directory to be inside the project directory since we can
77
# only cache local items.
88
variables:
9-
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
9+
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
1010

1111
# Pip's cache doesn't store the python packages
1212
# https://pip.pypa.io/en/stable/reference/pip_install/#caching

0 commit comments

Comments
 (0)