spiegel_podman/internal/localapi
Mario Loriedo 8babd48d59 Fix IsPathAvailableOnMachine when Windows drive isn't C:
The function `IsPathAvailableOnMachine` was returning
the wrong target path (the path of the file mounted
inside the machine) when the provider was HyperV and
the mounted drive wasn't `C:`.

For example here:

https://api.cirrus-ci.com/v1/task/5212355623124992/logs/main.log

The host path `Z:\\podman_test3139230807\\...\\host-ca-certs.pem` was
converted as guest path `/mnt/c/podman_test3139230807/.../host-ca-certs.pem`
although `Z:\` was mounted to `/mnt/z` rather than `/mnt/c`.

We have fixed this behavior and added a few unit tests.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2026-04-01 14:12:30 +02:00
..
types.go Require absolute path for local API 2025-11-19 18:20:37 +01:00
utils.go Fix IsPathAvailableOnMachine when Windows drive isn't C: 2026-04-01 14:12:30 +02:00
utils_test.go Fix IsPathAvailableOnMachine when Windows drive isn't C: 2026-04-01 14:12:30 +02:00
utils_unsupported.go artifact: Skip AddLocal optimization on WSL 2025-11-19 18:20:37 +01:00
utils_windows_test.go Fix IsPathAvailableOnMachine when Windows drive isn't C: 2026-04-01 14:12:30 +02:00