Skip to content

fix: use os.PathListSeparator#2195

Open
dolmen wants to merge 1 commit intoasdf-vm:masterfrom
dolmen-go:PathListSeparator
Open

fix: use os.PathListSeparator#2195
dolmen wants to merge 1 commit intoasdf-vm:masterfrom
dolmen-go:PathListSeparator

Conversation

@dolmen
Copy link
Contributor

@dolmen dolmen commented Oct 16, 2025

Summary

Use os.PathListSeparator instead of ":". This removes one blocker for a Windows port (#450) as the path separator on Windows is ";".

Also use path/filepath.SplitList instead of strings.Split to correctly handle the (very unexpected) case of an empty PATH in internal/shims.RemoveFromPath.

@dolmen dolmen requested a review from a team as a code owner October 16, 2025 07:16
Copy link

@carlos2martinize carlos2martinize left a comment

Choose a reason for hiding this comment

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

The plug in gotta fix the pay route still.

Use os.PathListSeparator instead of ":". This removes one blocker for
a Windows port as the path separator on Windows is ";".

Also use filepath.SplitList instead of strings.Split to correctly handle
the (very unepected) case of an empty PATH in RemoveFromPath.
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.

2 participants