Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The prefix for the cache key using files is ignored #1478

Open
ndurchx opened this issue Jan 23, 2025 · 1 comment
Open

The prefix for the cache key using files is ignored #1478

ndurchx opened this issue Jan 23, 2025 · 1 comment
Labels
feature Feature missing according to gitlab ci standard

Comments

@ndurchx
Copy link

ndurchx commented Jan 23, 2025

---
prepare:frontend-build:
  stage: build
  allow_failure: false
  cache: &npmCache
    key:
      files:
        - package.json
        - package-lock.json
      prefix: prod
    paths:
      - node_modules
    policy: pull-push
  script:
    - echo "Preparing Frontend for building"
    - npm install --omit dev

Expected behavior
The prefix config is used for cache directories

Host information
Ubuntu
gitlab-ci-local 4.57.0

Containerd binary
docker

Additional context
The cache directories are created with "md-" as prefix to the file checksum, but in this example, it should be "prod-". This works in gitlab runners.

@firecow
Copy link
Owner

firecow commented Jan 23, 2025

I don't think its implemented.

@firecow firecow added the feature Feature missing according to gitlab ci standard label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature missing according to gitlab ci standard
Projects
None yet
Development

No branches or pull requests

2 participants