Closed koitsu closed 3 months ago
Hi @koitsu, thank you for the bug report!
All modules run tests, just not a good test on this one I think. Having a look at it now to see if I can add the tests that would cover the scenario so I know when its fixed.
What version of the module were you using for this? The latest change (adding [System.IO.Path]::PathSeparator
#16 ) was added just 2 days ago, resulting in version 1.0.9.
Could you also get the result of [System.IO.Path]::PathSeparator
from your environment?
Looking at the tests from the nightly run as well I cannot see this malfunctioning:
You can test all this yourself. I have moved to another module. My point is that you should really honestly test this stuff yourself. Stop relying on "CI/CD tests" and start doing actual real-world functional tests. You're a programmer, step up to the plate, do not trust automation or unit tests.
Description
Was this module ever actually tested before it was uploaded to PSGallery?
Botched use of
[System.IO.Path]::PathSeparator
is somewhere in this code, resulting in a completely non-functional PATH. My gut feeling is that you are not leaving appending the trailing path separator, so repeated calls results in a PATH that is just one long string.I would've used https://www.powershellgallery.com/packages/Environment/ except his only offers an add cmdlet, not a removal cmdlet.
Repro:
Result:
I've tried other variations too; same result: