Runner cache does not preserve symlink mtime

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Summary

Runner Cache does not preserve symlinks' mtime between runs

Steps to reproduce

just one script step: ls -l node_modules/.bin/nopt

  • First run of job -> time 12:14
Running before_script and script
 $ ls -l node_modules/.bin/nopt
lrwxrwxrwx. 1 root root 19 May 21 12:14 node_modules/.bin/nopt -> ../nopt/bin/nopt.js

Saving cache
Created cache
  • Second run of job -> time 12:15
Restoring cache
Successfully extracted cache

Running before_script and script
 $ ls -l node_modules/.bin/nopt || true
lrwxrwxrwx. 1 root root 19 May 21 12:15 node_modules/.bin/nopt -> ../nopt/bin/nopt.js

What is the current bug behavior?

mtime of symlink doesn't get preserved between cache restoring and saving

What is the expected correct behavior?

mtime of unchanged symlink stays the same between job runs

Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading