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

Replace the path with XDG_ prefix with helm env variables in docs #790

Closed
wants to merge 1 commit into from

Conversation

rudeigerc
Copy link
Contributor

Signed-off-by: Yuchen Cheng rudeigerc@gmail.com

Fixes #336

According to helm/helm#8638, I replace the path with XDG_ prefix with helm env variables in the docs.

I discovered that the cached index files were installed in $(helm env HELM_CACHE_HOME)/repository instead of $XDG_CACHE_HOME/helm/repository/cache/ mentioned in the original docs, so I'm not quite sure which path is correct.

Signed-off-by: Yuchen Cheng <rudeigerc@gmail.com>
@bridgetkromhout
Copy link
Member

I'm not quite sure which path is correct.

@marckhouzam Can you review this PR? Thanks.

@technosophos
Copy link
Member

I feel uncomfortable adding UNIX-specific commands into the documentation in this way. Why not just change it to $HELM_CACHE_HOME and explain once how a user can get that information.

@@ -308,5 +308,5 @@ latest chart information.

*Under the hood, the `helm repo add` and `helm repo update` commands are
fetching the index.yaml file and storing them in the
`$XDG_CACHE_HOME/helm/repository/cache/` directory. This is where the `helm
`$(helm env HELM_CACHE_HOME)/repository` directory. This is where the `helm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Helm is used in non-POSIX systems like Windows. Commands that generally target that Linux like environments are something we try to avoid. In #780 I changed the variable name to the Helm one. This isn't the best solution those environment variables may be empty and using the defaults.

Can we get a solution that works for both Windows and Linux/Mac? It could possible tell people who to get the value for the environment variables and then show where something is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

References to XDG paths is insufficient
5 participants