1
0
mirror of synced 2026-03-02 11:36:56 +00:00
Files
flux2/cmd/flux
Sibasis Padhi 7dd9fde7ce fix: normalize paths to prevent concatenation on Windows
Fixes #5673

On Windows, when using absolute paths like C:\path\to\dir,
the path could be incorrectly concatenated, resulting in:
C:\working\dir\C:\path\to\dir\file

This fix applies filepath.Abs() and filepath.Clean() to normalize
the path before using it, ensuring absolute paths are handled
correctly on all platforms.

Changes:
- Apply filepath.Abs() to convert relative paths to absolute
- Apply filepath.Clean() to remove redundant separators and resolve ..
- Add tests for absolute paths, complex paths with .., and paths
  with redundant separators to verify normalization works correctly

The tests use actual 'flux build kustomization' commands with:
1. Absolute paths (prevents concatenation bugs)
2. Paths with parent directory (..) references
3. Paths with redundant separators (//)

All tests verify the command produces correct output, ensuring
the path normalization fix works as expected.

Signed-off-by: Sibasis Padhi <sibasis.padhi@gmail.com>
2026-01-13 10:25:59 -06:00
..
2025-06-04 11:21:11 +02:00
2024-12-09 12:21:52 +02:00
2024-04-08 17:54:38 +03:00
2024-04-08 17:54:38 +03:00
2025-09-16 12:08:15 +01:00
2025-10-24 14:52:36 -03:00
2025-09-16 11:00:12 +03:00
2025-09-16 12:08:15 +01:00
2025-09-16 12:08:15 +01:00
2024-05-09 17:18:11 +03:00
2025-09-16 11:00:12 +03:00
2023-06-05 10:07:38 +02:00
2024-06-11 23:56:04 +02:00
2023-12-08 19:47:12 +05:30
2025-10-09 08:45:01 -03:00
2025-09-16 12:08:15 +01:00
2023-12-08 19:47:12 +05:30
2022-01-10 16:30:38 +01:00
2023-08-22 12:36:58 +03:00
2022-01-10 16:30:38 +01:00