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

Fix chart install error when CWD contains files or dirs of same name as chart #13009

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexsomesan
Copy link

What this PR does / why we need it:

This PR introduces a more exhaustive check for the presence, in the current working directory of a local copy of the chart being installed.

Previously this detection was done with a simple os.Stat() call which would yield false positives even when an empty file of the same name as the chart was present, which leads to the installation failing.

These changes preserve the original behaviour that prioritises the local copy over the remote one.

Special notes for your reviewer:

Fixes issue #13008

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

…rt present in CWD.

Signed-off-by: Alex Somesan <alex.somesan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant