Skip to content

fix: absolute helm path + tests#2387

Open
icarocamelo wants to merge 1 commit into
mainfrom
fix-absolute-helm-path
Open

fix: absolute helm path + tests#2387
icarocamelo wants to merge 1 commit into
mainfrom
fix-absolute-helm-path

Conversation

@icarocamelo
Copy link
Copy Markdown
Collaborator

Description

Allow absolute path for helm_directory — fixes naive string concatenation that prepended a base directory to an already-absolute helm_directory value, producing malformed paths like ./cnfs/app/home/user/abs/path.

A new helper CNFManager.helm_dir_path(base_dir, helm_directory) was added using Crystal's stdlib Path#absolute?. All path-concatenation sites across the codebase were updated to use it, and unit tests covering relative, absolute, and edge-case inputs were added.

Issues:

Refs: #2385

How has this been tested:

  • Covered by existing integration testing

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

Documentation

  • No updates required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant