helm-docs icon indicating copy to clipboard operation
helm-docs copied to clipboard

[Bug]: Does not work in symlinked folder

Open muja opened this issue 9 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

When cding into a symlinked helm chart and running helm-docs ., helm-docs is not able to find any charts.

E.g.

❯ docker run -it --rm --entrypoint sh --volume $(pwd):/helm-docs -u $(id -u) jnorwood/helm-docs -c 'set -x; ln -s /helm-docs /tmp/foo; cd /tmp/foo; helm-docs .; cd $(realpath /tmp/foo); helm-docs .'
+ ln -s /helm-docs /tmp/foo
+ cd /tmp/foo
+ helm-docs .
INFO[2025-03-10T04:47:12Z] Found Chart directories []
+ realpath /tmp/foo
+ cd /helm-docs
+ helm-docs .
INFO[2025-03-10T04:47:12Z] Found Chart directories [.]
INFO[2025-03-10T04:47:12Z] Generating README Documentation for chart .

Expected Behavior

helm-docs does not care whether it's in a symlink or not

Reference Chart

not necessary

Reference Template

No response

Environment

docker latest

Link to helm-docs Logs

No response

Further Information

No response

muja avatar Mar 10 '25 04:03 muja