Closed lk77 closed 1 week ago
The cache does not seems to work with gcl, a simple config as below fail with gcl but succeed with gitlab,
if i do ls vendor i get the files that should be in node_modules
ls vendor
any artisan command fails because there is no autoload.php file in vendor directory (overrided by npm install)
--- myjob: allow_failure: false image: 'myimage' when: manual script: - composer install - npm install - php artisan cache: key: files: - package-lock.json - composer.lock paths: - node_modules/ - vendor/
Expected behavior The cache is not mixed up between node_modules and vendor
Host information Ubuntu 22 gitlab-ci-local 4.55.0
Containerd binary docker runner is used, but gcl runs in wsl
thanks.
edit :
MOUNT_CACHE=true seems to be the issue here in .gitlab-ci-local-env
MOUNT_CACHE=true
@lk77 I think this is a caveat of MOUNT_CACHE, and it doesn't work in all instances.
MOUNT_CACHE
@firecow okey thanks, then i will not use it, thanks.
The cache does not seems to work with gcl, a simple config as below fail with gcl but succeed with gitlab,
if i do
ls vendor
i get the files that should be in node_modulesany artisan command fails because there is no autoload.php file in vendor directory (overrided by npm install)
Expected behavior The cache is not mixed up between node_modules and vendor
Host information Ubuntu 22 gitlab-ci-local 4.55.0
Containerd binary docker runner is used, but gcl runs in wsl
thanks.
edit :
MOUNT_CACHE=true
seems to be the issue here in .gitlab-ci-local-env