From 2d4ae5a7925bc6b17ad4e8576ebdb1f7079fea9f Mon Sep 17 00:00:00 2001 From: xli-oai Date: Wed, 15 Apr 2026 22:10:48 -0700 Subject: [PATCH] Fix Windows git subdir marketplace test --- codex-rs/core/src/plugins/manager_tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/src/plugins/manager_tests.rs b/codex-rs/core/src/plugins/manager_tests.rs index cf499ce396..5c6d29d8aa 100644 --- a/codex-rs/core/src/plugins/manager_tests.rs +++ b/codex-rs/core/src/plugins/manager_tests.rs @@ -1070,6 +1070,9 @@ async fn install_plugin_supports_git_subdir_marketplace_sources() { let tmp = tempfile::tempdir().unwrap(); let repo_root = tmp.path().join("marketplace"); let remote_repo = tmp.path().join("remote-plugin-repo"); + let remote_repo_url = url::Url::from_directory_path(&remote_repo) + .unwrap() + .to_string(); fs::create_dir_all(repo_root.join(".git")).unwrap(); fs::create_dir_all(repo_root.join(".agents/plugins")).unwrap(); write_plugin(&remote_repo, "plugins/toolkit", "toolkit"); @@ -1090,7 +1093,7 @@ async fn install_plugin_supports_git_subdir_marketplace_sources() { }} ] }}"#, - remote_repo.display() + remote_repo_url ), ) .unwrap();