returnnil,fmt.Errorf("an error occurred while checking for chart dependencies. You may need to run 'helm dependency build' to fetch missing dependencies: %w",err)
returnnil,fmt.Errorf("failed reloading chart after repo update: %w",err)
returnnil,fmt.Errorf("failed reloading chart after repo update: %w",err)
}
}
}else{
returnnil,fmt.Errorf("an error occurred while checking for chart dependencies. You may need to run 'helm dependency build' to fetch missing dependencies: %w",err)
err=fmt.Errorf("an error occurred while checking for chart dependencies. You may need to run 'helm dependency build' to fetch missing dependencies: %w",err)
err=fmt.Errorf("an error occurred while checking for chart dependencies. You may need to run 'helm dependency build' to fetch missing dependencies: %w",err)
returnerrors.New("the lock file (Chart.lock) is out of sync with the dependencies file (Chart.yaml). Please update the dependencies with 'helm dependency update'")
}
// If lock digest differs and chart is apiVersion v1, it maybe because the lock was built
// If lock digest differs and chart is apiVersion v1, it maybe because the lock was built
// with Helm 2 and therefore should be checked with Helm v2 hash
// with Helm 2 and therefore should be checked with Helm v2 hash
log.Println("warning: a valid Helm v3 hash was not found. Checking against Helm v2 hash...")
log.Println("warning: a valid Helm v3 hash was not found. Checking against Helm v2 hash...")
ifv2Sum!=lock.Digest{
ifv2Sum!=lock.Digest{
returnerrors.New("the lock file (requirements.lock) is out of sync with the dependencies file (requirements.yaml). Please update the dependencies")
returnerrors.New("the lock file (requirements.lock) is out of sync with the dependencies file (requirements.yaml). Please update the dependencies")
}
}
}else{
returnerrors.New("the lock file (Chart.lock) is out of sync with the dependencies file (Chart.yaml). Please update the dependencies with 'helm dependency update'")
}
}
}
// Check that all of the repos we're dependent on actually exist.
// Check that all of the repos we're dependent on actually exist.