Error: requirements.lock is out of sync with requirements.yaml
Asked Answered
R

2

7

I have following dependency in requirement.yaml file:

dependencies:
  - name: redis
    version: 0.1.2
    repository: http://helm-charts.repo:8800/

requirements.lock:

dependencies:
- name: redis
  repository: http://helm-charts.repo:8800/
  version: 0.1.2
digest: sha256: <some alpha numeric value>
generated: <>

helm dependency build <Chart name>

is giving me:

Error: requirements.lock is out of sync with requirements.yaml

Ratline answered 30/1, 2019 at 15:31 Comment(0)
R
19

You probably have old digest. Instead of manually updating requirements.lock file use the following command after just updating your requirement.yaml file:

helm dep update
Ratline answered 30/1, 2019 at 15:33 Comment(0)
W
1

I run into similar issue

Error: the lock file (Chart.lock) is out of sync with the dependencies file (Chart.yaml). Please update the dependencies

The problem: There was requirements.lock in the repo and Chart.lock got created. This resulted in two lock files and some tools getting confused.

Solution:

rm requirements.lock
Woodrowwoodruff answered 31/1 at 13:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.