From fe2362202fd6e5741a9446c00dee75e3dd34c558 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Mon, 16 Sep 2024 01:55:04 +0200 Subject: [PATCH] Write pixi.toml source file list as posix This should prevent the test failure under Windows due to comparing forward slashes and backslahes. --- conda_lock/export_lock_spec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda_lock/export_lock_spec.py b/conda_lock/export_lock_spec.py index 7bd5e5e8..da6b4db6 100644 --- a/conda_lock/export_lock_spec.py +++ b/conda_lock/export_lock_spec.py @@ -48,7 +48,7 @@ def render_pixi_toml( "For more information, see " "and .", "Source files:", - *(f"- {src_file}" for src_file in lock_spec.sources), + *(f"- {src_file.as_posix()}" for src_file in lock_spec.sources), ): pixi_toml.add(comment(line))