Skip to content

Don't apply custom Path prefix twice - #153

Draft
lforchini wants to merge 1 commit into
test/refactor-config-loadingfrom
fix-double-path-bug
Draft

lforchini wants to merge 1 commit into
test/refactor-config-loadingfrom
fix-double-path-bug

Conversation

@lforchini

Copy link
Copy Markdown
Collaborator

In some instances, a prefix could be appended twice. Some config
loading functions would take a util::Path (prefixed), convert it to a
std::*::Path (still prefixed), and then convert it to a util::Path
again, doubling the prefix. Don't perform this intermediate step,
directly append to the util::Path.

Signed-off-by: Leonardo Forchini leonardo.forchini@nutanix.com


Stack created with GitHub Stacks CLI • Give Feedback 💬

In some instances, a prefix could be appended twice. Some config
loading functions would take a `util::Path` (prefixed), convert it to a
`std::*::Path` (still prefixed), and then convert it to a `util::Path`
again, doubling the prefix. Don't perform this intermediate step,
directly append to the `util::Path`.

Signed-off-by: Leonardo Forchini <leonardo.forchini@nutanix.com>
@lforchini
lforchini added this pull request to stack #157 October 23, 2026 08:45
@lforchini
lforchini removed this pull request from stack #157 October 23, 2026 08:49
@lforchini
lforchini added this pull request to stack #159 October 23, 2026 08:50
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