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

1/30/2019

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

-- Vishrant
kubernetes-helm

1 Answer

1/30/2019

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
-- Vishrant
Source: StackOverflow