From 62785663f98849b8ec0481e98a798bdb826803f6 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 21 Oct 2026 12:32:33 +0000 Subject: [PATCH 1/2] chore: bump vite-task to 8f73655 Co-authored-by: Charles Wang --- Cargo.lock | 72 +++++++++++++++++++++++++++--------------------------- Cargo.toml | 22 ++++++++--------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bc2bb42ec4..c56a22561d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2145,7 +2145,7 @@ dependencies = [ [[package]] name = "fspy" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "allocator-api2", "anyhow", @@ -2182,7 +2182,7 @@ dependencies = [ [[package]] name = "fspy_client_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "allocator-api2", "anyhow", @@ -2199,7 +2199,7 @@ dependencies = [ [[package]] name = "fspy_detours_sys" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "cc", "winapi", @@ -2208,7 +2208,7 @@ dependencies = [ [[package]] name = "fspy_nostd" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "atoi", "bitflags 2.13.2", @@ -2222,7 +2222,7 @@ dependencies = [ [[package]] name = "fspy_nostd_alloc" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "allocator-api2", "bump-scope", @@ -2232,7 +2232,7 @@ dependencies = [ [[package]] name = "fspy_preload_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "allocator-api2", "ctor", @@ -2250,7 +2250,7 @@ dependencies = [ [[package]] name = "fspy_preload_windows" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "allocator-api2", "constcat", @@ -2270,7 +2270,7 @@ dependencies = [ [[package]] name = "fspy_seccomp_unotify" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "futures-util", "libc", @@ -2287,7 +2287,7 @@ dependencies = [ [[package]] name = "fspy_shared" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "allocator-api2", "bstr", @@ -2308,7 +2308,7 @@ dependencies = [ [[package]] name = "fspy_shared_unix" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "allocator-api2", "anyhow", @@ -2328,7 +2328,7 @@ dependencies = [ [[package]] name = "fspy_shm" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "fspy_nostd", "windows-sys 0.61.2", @@ -8701,7 +8701,7 @@ checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64" [[package]] name = "vt" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "anstream", "anyhow", @@ -8763,7 +8763,7 @@ dependencies = [ [[package]] name = "vt_casefold" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "ref-cast", "serde", @@ -8772,7 +8772,7 @@ dependencies = [ [[package]] name = "vt_client" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "rustc-hash", "vt_casefold", @@ -8786,7 +8786,7 @@ dependencies = [ [[package]] name = "vt_client_napi" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "napi", "napi-build", @@ -8798,7 +8798,7 @@ dependencies = [ [[package]] name = "vt_glob" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "globset", "thiserror 2.0.21", @@ -8808,7 +8808,7 @@ dependencies = [ [[package]] name = "vt_graph" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "anyhow", "async-trait", @@ -8830,7 +8830,7 @@ dependencies = [ [[package]] name = "vt_graph_ser" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "petgraph", "serde", @@ -8839,7 +8839,7 @@ dependencies = [ [[package]] name = "vt_ipc_shared" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "rustc-hash", "vt_ipc_str", @@ -8849,7 +8849,7 @@ dependencies = [ [[package]] name = "vt_ipc_str" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "allocator-api2", "bumpalo", @@ -8862,7 +8862,7 @@ dependencies = [ [[package]] name = "vt_materialized_artifact" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "tempfile", "vt_materialized_artifact_macros", @@ -8871,7 +8871,7 @@ dependencies = [ [[package]] name = "vt_materialized_artifact_macros" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "proc-macro2", "quote", @@ -8882,7 +8882,7 @@ dependencies = [ [[package]] name = "vt_path" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "diff-struct", "os_str_bytes", @@ -8897,7 +8897,7 @@ dependencies = [ [[package]] name = "vt_plan" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "anyhow", "async-trait", @@ -8926,7 +8926,7 @@ dependencies = [ [[package]] name = "vt_powershell" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "vt_path", "which", @@ -8935,7 +8935,7 @@ dependencies = [ [[package]] name = "vt_pty_terminal" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "anyhow", "portable-pty", @@ -8945,7 +8945,7 @@ dependencies = [ [[package]] name = "vt_pty_terminal_test" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "anyhow", "portable-pty", @@ -8956,7 +8956,7 @@ dependencies = [ [[package]] name = "vt_pty_terminal_test_client" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "base64 0.22.1", "getrandom 0.4.3", @@ -8966,7 +8966,7 @@ dependencies = [ [[package]] name = "vt_remote_cache" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "base64 0.22.1", "bytes", @@ -8986,7 +8986,7 @@ dependencies = [ [[package]] name = "vt_select" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "anyhow", "crossterm", @@ -8997,7 +8997,7 @@ dependencies = [ [[package]] name = "vt_server" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "futures", "rustc-hash", @@ -9017,7 +9017,7 @@ dependencies = [ [[package]] name = "vt_shell" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "brush-parser", "serde", @@ -9029,7 +9029,7 @@ dependencies = [ [[package]] name = "vt_snapshot_test" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "serde", "serde_json", @@ -9039,7 +9039,7 @@ dependencies = [ [[package]] name = "vt_socket_ipc" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "nix 0.31.3", "tempfile", @@ -9052,7 +9052,7 @@ dependencies = [ [[package]] name = "vt_str" version = "0.1.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "compact_str 0.9.1", "diff-struct", @@ -9063,7 +9063,7 @@ dependencies = [ [[package]] name = "vt_workspace" version = "0.0.0" -source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9#8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" +source = "git+https://github.com/voidzero-dev/vite-task.git?rev=8f7365508385e60b082d5d05bb81b567c2e2bc4f#8f7365508385e60b082d5d05bb81b567c2e2bc4f" dependencies = [ "clap", "petgraph", diff --git a/Cargo.toml b/Cargo.toml index 06e52bfca4..f27c256fa3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -194,7 +194,7 @@ dunce = "1.0.5" fast-glob = "1.0.0" flate2 = { version = "=1.1.9", features = ["zlib-rs"] } form_urlencoded = "1.2.1" -fspy = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" } +fspy = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8f7365508385e60b082d5d05bb81b567c2e2bc4f" } futures = "0.3.31" futures-util = "0.3.31" glob = "0.3.2" @@ -308,16 +308,16 @@ vp_setup = { path = "crates/vp_setup" } vp_shared = { path = "crates/vp_shared" } vp_static_config = { path = "crates/vp_static_config" } vp_toolchain = { path = "crates/vp_toolchain" } -vt = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" } -vt_casefold = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" } -vt_path = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" } -vt_powershell = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" } -vt_pty_terminal_test = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" } -vt_pty_terminal_test_client = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" } -vt_select = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" } -vt_snapshot_test = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" } -vt_str = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" } -vt_workspace = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8db455ef9c2b1c7b33cf70d8ba370c1f2c49d4c9" } +vt = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8f7365508385e60b082d5d05bb81b567c2e2bc4f" } +vt_casefold = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8f7365508385e60b082d5d05bb81b567c2e2bc4f" } +vt_path = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8f7365508385e60b082d5d05bb81b567c2e2bc4f" } +vt_powershell = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8f7365508385e60b082d5d05bb81b567c2e2bc4f" } +vt_pty_terminal_test = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8f7365508385e60b082d5d05bb81b567c2e2bc4f" } +vt_pty_terminal_test_client = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8f7365508385e60b082d5d05bb81b567c2e2bc4f" } +vt_select = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8f7365508385e60b082d5d05bb81b567c2e2bc4f" } +vt_snapshot_test = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8f7365508385e60b082d5d05bb81b567c2e2bc4f" } +vt_str = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8f7365508385e60b082d5d05bb81b567c2e2bc4f" } +vt_workspace = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "8f7365508385e60b082d5d05bb81b567c2e2bc4f" } walkdir = "2.5.0" webpki-root-certs = "1.0.10" which = "8.0.6" From 011fcdc6e8bad4f7e1a679f83133c9cb2316c752 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 21 Oct 2026 13:18:38 +0000 Subject: [PATCH 2/2] test: scaffold create from packages outside the workspace vite-task 8f73655 treats a nested package as its own root unless the workspace member globs include it. vp create follows that root. Co-authored-by: Charles Wang --- .../snapshots.toml | 5 ++-- .../create_from_bun_monorepo_subdir.md | 16 +++++++--- .../snapshots.toml | 11 +++---- .../snapshots/create_from_monorepo_subdir.md | 30 ++++++++++++------- crates/vp_pm_cli/src/package_manager.rs | 22 ++++++++++++++ 5 files changed, 62 insertions(+), 22 deletions(-) diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_bun_monorepo_subdir/snapshots.toml b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_bun_monorepo_subdir/snapshots.toml index 562dae89fe..9facb12f06 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_bun_monorepo_subdir/snapshots.toml +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_bun_monorepo_subdir/snapshots.toml @@ -8,7 +8,8 @@ steps = [ { argv = ["vpt", "stat-file", "apps/website/tools/vite-plus-generator/package.json", "--assert-not", "file"], comment = "not created inside apps/website/", continue-on-failure = true }, { argv = ["vp", "create", "--no-interactive", "vite:application"], cwd = "apps", comment = "from workspace parent dir", snapshot = false, continue-on-failure = true }, { argv = ["vpt", "stat-file", "apps/vite-plus-application/package.json", "--assert", "file"], comment = "created at apps/vite-plus-application", continue-on-failure = true }, - { argv = ["vp", "create", "--no-interactive", "vite:library"], cwd = "scripts/helper", comment = "from non-workspace dir", snapshot = false, continue-on-failure = true }, - { argv = ["vpt", "stat-file", "packages/vite-plus-library/package.json", "--assert", "file"], comment = "created at packages/vite-plus-library", continue-on-failure = true }, + { argv = ["vp", "create", "--no-interactive", "vite:library"], cwd = "scripts/helper", comment = "from a package that is not a workspace member", snapshot = false, continue-on-failure = true }, + { argv = ["vpt", "stat-file", "scripts/helper/vite-plus-library/package.json", "--assert", "file"], comment = "scaffolded inside the non-member package", continue-on-failure = true }, + { argv = ["vpt", "stat-file", "packages/vite-plus-library/package.json", "--assert-not", "file"], comment = "not added to the enclosing workspace", continue-on-failure = true }, { argv = ["vpt", "print-file", "package.json"], comment = "verify workspaces object form preserved after workspace update", continue-on-failure = true }, ] diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_bun_monorepo_subdir/snapshots/create_from_bun_monorepo_subdir.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_bun_monorepo_subdir/snapshots/create_from_bun_monorepo_subdir.md index c5a86a9ba0..29a8029b53 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_bun_monorepo_subdir/snapshots/create_from_bun_monorepo_subdir.md +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_bun_monorepo_subdir/snapshots/create_from_bun_monorepo_subdir.md @@ -36,15 +36,23 @@ apps/vite-plus-application/package.json: file ## `cd scripts/helper && vp create --no-interactive vite:library` -from non-workspace dir +from a package that is not a workspace member -## `vpt stat-file packages/vite-plus-library/package.json --assert file` +## `vpt stat-file scripts/helper/vite-plus-library/package.json --assert file` -created at packages/vite-plus-library +scaffolded inside the non-member package ``` -packages/vite-plus-library/package.json: file +scripts/helper/vite-plus-library/package.json: file +``` + +## `vpt stat-file packages/vite-plus-library/package.json --assert-not file` + +not added to the enclosing workspace + +``` +packages/vite-plus-library/package.json: missing ``` ## `vpt print-file package.json` diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_monorepo_subdir/snapshots.toml b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_monorepo_subdir/snapshots.toml index 30c6b5fed7..ed57001900 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_monorepo_subdir/snapshots.toml +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_monorepo_subdir/snapshots.toml @@ -12,11 +12,12 @@ steps = [ { argv = ["vpt", "stat-file", "apps/website/tools/vite-plus-generator/package.json", "--assert-not", "file"], comment = "not created inside apps/website/", continue-on-failure = true }, { argv = ["vp", "create", "--no-interactive", "vite:application"], cwd = "apps", comment = "from workspace parent dir", snapshot = false, continue-on-failure = true }, { argv = ["vpt", "stat-file", "apps/vite-plus-application/package.json", "--assert", "file"], comment = "created at apps/vite-plus-application", continue-on-failure = true }, - { argv = ["vp", "create", "--no-interactive", "vite:library"], cwd = "scripts/helper", comment = "from non-workspace dir", snapshot = false, continue-on-failure = true }, - { argv = ["vpt", "stat-file", "packages/vite-plus-library/package.json", "--assert", "file"], comment = "created at packages/vite-plus-library", continue-on-failure = true }, - { argv = ["vpt", "stat-file", "scripts/helper/packages/vite-plus-library/package.json", "--assert-not", "file"], comment = "not created inside scripts/helper/", continue-on-failure = true }, - { argv = ["vp", "create", "--no-interactive", "vite:application", "--directory", "apps/custom-app"], cwd = "scripts/helper", comment = "--directory from non-workspace dir", snapshot = false, continue-on-failure = true }, - { argv = ["vpt", "stat-file", "apps/custom-app/package.json", "--assert", "file"], comment = "created at apps/custom-app with --directory", continue-on-failure = true }, + { argv = ["vp", "create", "--no-interactive", "vite:library"], cwd = "scripts/helper", comment = "from a package that is not a workspace member", snapshot = false, continue-on-failure = true }, + { argv = ["vpt", "stat-file", "scripts/helper/vite-plus-library/package.json", "--assert", "file"], comment = "scaffolded inside the non-member package", continue-on-failure = true }, + { argv = ["vpt", "stat-file", "packages/vite-plus-library/package.json", "--assert-not", "file"], comment = "not added to the enclosing workspace", continue-on-failure = true }, + { argv = ["vp", "create", "--no-interactive", "vite:application", "--directory", "apps/custom-app"], cwd = "scripts/helper", comment = "--directory is relative to the non-member package", snapshot = false, continue-on-failure = true }, + { argv = ["vpt", "stat-file", "scripts/helper/apps/custom-app/package.json", "--assert", "file"], comment = "created under the non-member package", continue-on-failure = true }, + { argv = ["vpt", "stat-file", "apps/custom-app/package.json", "--assert-not", "file"], comment = "not created in the enclosing workspace", continue-on-failure = true }, { argv = ["vpt", "mkdir", "-p", "apps/dot-test"], comment = "--directory . from monorepo subdir", snapshot = false }, { argv = ["vp", "create", "--no-interactive", "vite:application", "--directory", "."], cwd = "apps/dot-test", snapshot = false, continue-on-failure = true }, { argv = ["vpt", "stat-file", "apps/dot-test/package.json", "--assert", "file"], comment = "created at apps/dot-test with --directory .", continue-on-failure = true }, diff --git a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_monorepo_subdir/snapshots/create_from_monorepo_subdir.md b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_monorepo_subdir/snapshots/create_from_monorepo_subdir.md index e0a307720c..1060e42716 100644 --- a/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_monorepo_subdir/snapshots/create_from_monorepo_subdir.md +++ b/crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/create_from_monorepo_subdir/snapshots/create_from_monorepo_subdir.md @@ -76,36 +76,44 @@ apps/vite-plus-application/package.json: file ## `cd scripts/helper && vp create --no-interactive vite:library` -from non-workspace dir +from a package that is not a workspace member -## `vpt stat-file packages/vite-plus-library/package.json --assert file` +## `vpt stat-file scripts/helper/vite-plus-library/package.json --assert file` -created at packages/vite-plus-library +scaffolded inside the non-member package ``` -packages/vite-plus-library/package.json: file +scripts/helper/vite-plus-library/package.json: file ``` -## `vpt stat-file scripts/helper/packages/vite-plus-library/package.json --assert-not file` +## `vpt stat-file packages/vite-plus-library/package.json --assert-not file` -not created inside scripts/helper/ +not added to the enclosing workspace ``` -scripts/helper/packages/vite-plus-library/package.json: missing +packages/vite-plus-library/package.json: missing ``` ## `cd scripts/helper && vp create --no-interactive vite:application --directory apps/custom-app` ---directory from non-workspace dir +--directory is relative to the non-member package -## `vpt stat-file apps/custom-app/package.json --assert file` +## `vpt stat-file scripts/helper/apps/custom-app/package.json --assert file` -created at apps/custom-app with --directory +created under the non-member package ``` -apps/custom-app/package.json: file +scripts/helper/apps/custom-app/package.json: file +``` + +## `vpt stat-file apps/custom-app/package.json --assert-not file` + +not created in the enclosing workspace + +``` +apps/custom-app/package.json: missing ``` ## `vpt mkdir -p apps/dot-test` diff --git a/crates/vp_pm_cli/src/package_manager.rs b/crates/vp_pm_cli/src/package_manager.rs index f90b887a5f..3102b9c170 100644 --- a/crates/vp_pm_cli/src/package_manager.rs +++ b/crates/vp_pm_cli/src/package_manager.rs @@ -3256,6 +3256,28 @@ mod tests { assert_eq!(&*result.path, &*temp_dir_path); } + #[test] + fn test_find_workspace_root_ignores_workspace_that_excludes_nested_package() { + let temp_dir = create_temp_dir(); + let temp_dir_path = AbsolutePathBuf::new(temp_dir.path().to_path_buf()).unwrap(); + create_pnpm_workspace_yaml(&temp_dir_path, "packages:\n - 'packages/*'\n"); + create_package_json(&temp_dir_path, r#"{"name": "root"}"#); + + let helper = temp_dir_path.join("scripts").join("helper"); + fs::create_dir_all(&helper).expect("Failed to create helper package"); + create_package_json(&helper, r#"{"name": "helper"}"#); + + let (result, _) = find_workspace_root(&helper).expect("Should find the nested package"); + assert_eq!(&*result.path, &*helper); + assert!(matches!(result.workspace_file, WorkspaceFile::NonWorkspacePackage(_))); + + let scripts = temp_dir_path.join("scripts"); + let (result, _) = find_workspace_root(&scripts) + .expect("A directory with no package.json stays in the workspace"); + assert_eq!(&*result.path, &*temp_dir_path); + assert!(matches!(result.workspace_file, WorkspaceFile::PnpmWorkspaceYaml(_))); + } + #[test] fn test_find_workspace_root_with_package_json_workspaces() { let temp_dir = create_temp_dir();