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
"helm dep build" fails if requirements.yaml contains local dependencies and remote one #3742
Comments
I am seeing similar issue with helm dependency update - trying to use requirements.yaml to alias and conditionally include local subcharts + pull in remote dependencies. 'helm dependency update' requires a repository path be provided for all entries in requirements.yaml so I added file://./charts/mychart for local subchart. The dependency update fails with : 'Save error occurred: directory ../charts/mychart not found' even though the path listed exists. Commenting out local subcharts when running 'helm dependency update' and then uncommenting before install to get around issue temporarily. |
I'm also seeing this same issue currently. |
I've been looking into this and have reached some confusing dead ends. I'm not very experienced with go, but I cannot understand how the same |
Also experiencing this on mac ! |
The only workaround that I found for this is to place all the sub charts into a
But this is kind of ugly in my opinion. |
Depending on how you are using the Helm requirements file, this may be of interest: https://github.com/reactiveops/autohelm It provides a declarative wrapper for helm. |
@ejether, I am also looking at the helm code and I think I found the reason why the os.Stat() fails to find the folder. |
I'll propose a PR to fix this soon. I made it work locally but I need some more testing and unfortunatly there are no tests for that daowloadAll method and I am a Go rooky for writing it from scratch. |
Thanks for working on it. |
using workaround with 'file://_charts/CHART_NAME' due to helm issue helm/helm#3742
* feat(incubator.istio): add makefile * feat(incubator.istio): import chart * refactor(incubator.istio): fix local dep using workaround with 'file://_charts/CHART_NAME' due to helm issue helm/helm#3742 * refactor(incubator.istio): update makefile
Any progress on this? It has been a YEAR. |
I have the same problem |
+1 |
Still seeing the problem |
changes following the review Closes helm#3742 Signed-off-by: Sebastien Gandon <sgandon@talend.com>
changes following the review Closes helm#3742 Signed-off-by: Sebastien Gandon <sgandon@talend.com>
forgot the helm issue link update changes following the review Closes helm#3742 Signed-off-by: Sebastien Gandon <sgandon@talend.com>
Closes helm#3742 Signed-off-by: Sebastien Gandon <sgandon@talend.com>
changes following the review Closes helm#3742 Signed-off-by: Sebastien Gandon <sgandon@talend.com> Signed-off-by: Sebastien Gandon <sgandon@talend.com>
forgot the helm issue link update changes following the review Closes helm#3742 Signed-off-by: Sebastien Gandon <sgandon@talend.com>
Same problem was also described in issue 5531 - now closed as duplicate. |
Experiencing this as well. Painful as hell, causes ugly workarounds. |
Still present in helm 3 Chart.yaml v2 |
Am I making the correct assumption that if you remove the repository option, it would automatically check in the charts folder? helm/pkg/downloader/manager.go Line 219 in 985827d
Seems to be working for me, unless I'm missing something vital. |
We have worked around this problem by wrapping external charts with local charts, and doing 'helm dep update .' in the wrapping subchart before packaging the top-level umbrella chart. |
closing as inactive. Please re-open if this continues to show itself in more recent versions of Helm 3. Thanks. |
Hello
I have a chart that contains two dependencies, one is located in our internal helm registry, one is copied into the charts sub-directory. I can either use "helm dep build" with only the one from the registry or the local one, but not in combination:
The helm registry is added:
Using this requirements yaml:
and then "helm dep list"
then trying "helm dep update" fails:
for some reason the sub-chart in charts is no longer a local one.
Just using this requirements.yaml and running "helm dep update" works:
It also works if both sub-charts are copied and extracted already.
I tried pointing to the file using this requirements.yaml:
this does not download the mobi-postgresql file anymore.
So currently I can only use remote charts or both within the charts sub-directory. But mixing them havong one from remote and one unpacked (in case some chart does not yet offer some values, so we temporarly copy them) does somehow not work.
using helm 2.8.2 on windows.
Is there a workaround?
The text was updated successfully, but these errors were encountered: