Skip to content

fix: use os.PathListSeparator#2195

Merged
Stratus3D merged 1 commit into
asdf-vm:masterfrom
dolmen-go:PathListSeparator
Apr 7, 2026
Merged

fix: use os.PathListSeparator#2195
Stratus3D merged 1 commit into
asdf-vm:masterfrom
dolmen-go:PathListSeparator

Conversation

@dolmen
Copy link
Copy Markdown
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
Copy Markdown

@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.
Copy link
Copy Markdown
Member

@Stratus3D Stratus3D left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @dolmen ! Looks good to me.

@Stratus3D Stratus3D merged commit d5efb1e into asdf-vm:master Apr 7, 2026
8 checks passed
@Stratus3D Stratus3D mentioned this pull request Apr 7, 2026
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.

3 participants