Repository navigation
Fixing issue where archives created on windows have broken paths - #7751
Conversation
|
I've tested this and I can confirm that it fixes #7748. Thanks Matt! |
|
@meurig Thanks for testing. This reminds me that we should start using GitHub Actions to perform windows testing. |
|
I recall us fixing this in Helm 2. Perhaps it was not ported over. I'm pretty sure this was how we fixed it. I'll see if I can pull up the PR |
|
In Helm 2, we use To save the number of calls to |
When archives are created on windows the path spearator in the archive file is \\. This causes issues when the file is unpacked. For example, on Linux the files are unpacked in a flat structure and \ is part of the file name. This causes comp issues. In Helm v2 the path was set as / when the archive was written. This works on both Windows and POSIX systems. The fix being implemented is to use the ToSlash function to ensure / is used as the separator. Fixes helm#7748 Signed-off-by: Matt Farina <[email protected]>
|
@bacongobbler Great catch. I should have noticed the pattern. Updated to the much simpler fix. |
When archives are created on windows the path spearator in the
archive file is \. This causes issues when the file is unpacked.
For example, on Linux the files are unpacked in a flat structure
and \ is part of the file name. This causes comp issues. In Helm
v2 the path was set as / when the archive was written. This works
on both Windows and POSIX systems.
The fix being implemented is to use the ToSlash function to ensure
/ is used as the separator.
Fixes #7748