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 join paths to remove duplicate separators #209

Merged
merged 4 commits into from
May 3, 2021
Merged

Conversation

nkoenig
Copy link
Contributor

@nkoenig nkoenig commented Apr 30, 2021

🦟 Bug fix

Summary

The joinPaths function would remove trailing slashes from the function arguments. This can cause downstream applications, like fuel tools using libzip, to treat a directory as a file.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

LGTM. regex can be a bit slow though, so we need to be careful if using this function repeatedly.

Nate Koenig added 3 commits April 30, 2021 17:31
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Copy link
Contributor

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

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

Came back clean other than known Homebrew warnings.

@mjcarroll mjcarroll merged commit b85431f into ign-common3 May 3, 2021
@mjcarroll mjcarroll deleted the fix_join_paths branch May 3, 2021 20:04
@nkoenig nkoenig mentioned this pull request May 6, 2021
7 tasks
mjcarroll added a commit that referenced this pull request May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel 🔮 dome Ignition Dome
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants