Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,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 = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "4bbcba1733a4cd3816beac9a69ddd6f67834e49e" }
fspy = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "6fdc4f106563491be4fb36381b84c5937d74fe9c" }
futures = "0.3.31"
futures-util = "0.3.31"
glob = "0.3.2"
Expand Down Expand Up @@ -183,14 +183,14 @@ vfs = "0.12.1"
vite_command = { path = "crates/vite_command" }
vite_error = { path = "crates/vite_error" }
vite_js_runtime = { path = "crates/vite_js_runtime" }
vite_glob = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "4bbcba1733a4cd3816beac9a69ddd6f67834e49e" }
vite_glob = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "6fdc4f106563491be4fb36381b84c5937d74fe9c" }
vite_install = { path = "crates/vite_install" }
vite_migration = { path = "crates/vite_migration" }
vite_shared = { path = "crates/vite_shared" }
vite_path = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "4bbcba1733a4cd3816beac9a69ddd6f67834e49e" }
vite_str = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "4bbcba1733a4cd3816beac9a69ddd6f67834e49e" }
vite_task = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "4bbcba1733a4cd3816beac9a69ddd6f67834e49e" }
vite_workspace = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "4bbcba1733a4cd3816beac9a69ddd6f67834e49e" }
vite_path = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "6fdc4f106563491be4fb36381b84c5937d74fe9c" }
vite_str = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "6fdc4f106563491be4fb36381b84c5937d74fe9c" }
vite_task = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "6fdc4f106563491be4fb36381b84c5937d74fe9c" }
vite_workspace = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "6fdc4f106563491be4fb36381b84c5937d74fe9c" }
walkdir = "2.5.0"
wax = "0.6.0"
which = "8.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/build-vite-env/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dist/assets/index-BnIqjoTZ.js <variable> kB │ gzip: <variable> kB
✓ built in <variable>ms

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.

> VITE_MY_VAR=2 vp run build # env changed, should miss cache
$ vp build ✗ cache miss: envs changed, executing
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/cache-clean/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $ vp fmt ✓ cache hit, replaying
Finished in <variable>ms on 4 files using <variable> threads.

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.

> vp cache clean # clean the cache
> vp run hello # cache miss after clean
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/cache-scripts-enabled/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ $ node hello.mjs ✓ cache hit, replaying
hello from script

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $ node -p process.env.MY_ENV ✓ cache hit, replaying
1

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.

> # add a new pass through env via VITE_TASK_PASS_THROUGH_ENVS
> VITE_TASK_PASS_THROUGH_ENVS=MY_ENV,MY_ENV2 MY_ENV=2 vp run hello # cache should be invalidated because passThroughEnvs config changed
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/command-install-shortcut/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ dependencies:
Done in <variable>ms using pnpm v<semver>

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.
6 changes: 3 additions & 3 deletions packages/cli/snap-tests/command-pack-monorepo/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ index.cjs

> vp run hello#build 2>&1 | grep 'cache hit' # should hit cache
~/packages/hello$ vp pack ✓ cache hit, replaying
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.

> vp run array-config#build # should build the library supports array config
> ls packages/array-config/dist # should have the library
Expand All @@ -13,12 +13,12 @@ index.mjs

> vp run array-config#build 2>&1 | grep 'cache hit' # should hit cache
~/packages/array-config$ vp pack ✓ cache hit, replaying
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.

> vp run default-config#build # should build the library supports default config
> ls packages/default-config/dist # should have the library
index.mjs

> vp run default-config#build 2>&1 | grep 'cache hit' # should hit cache
~/packages/default-config$ vp pack ✓ cache hit, replaying
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/command-pack/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ $ vp pack src/index.ts ✓ cache hit, replaying
✔ Build complete in <variable>ms

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/ignore_dist/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Found 0 warnings and 0 errors.
Finished in <variable>ms on 1 file with <variable> rules using <variable> threads.

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/npm-install-with-options/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ tslib
$ vp install --production --silent ✓ cache hit, replaying

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/oxlint-typeaware/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Found 0 warnings and 0 errors.
Finished in <variable>ms on 1 file with <variable> rules using <variable> threads.

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.

> vp run lint-typeaware
$ vp lint --type-aware ./src
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/snap-tests/plain-terminal-ui-nested/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Found 0 warnings and 0 errors.
Finished in <variable>ms on 3 files with <variable> rules using <variable> threads.

---
[vp run] 0/2 cache hit (0%). (Run `vp run --last-details` for full details)
vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details)

> echo 'console.log(123)' > a.ts
> vp run hello # report cache status from the inner runner
Expand All @@ -21,4 +21,4 @@ Found 0 warnings and 0 errors.
Finished in <variable>ms on 3 files with <variable> rules using <variable> threads.

---
[vp run] 1/2 cache hit (50%), <variable>ms saved. (Run `vp run --last-details` for full details)
vp run: 1/2 cache hit (50%), <variable>ms saved. (Run `vp run --last-details` for full details)
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/plain-terminal-ui/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $ node hello.mjs ✓ cache hit, replaying
input_content 1

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.

> FOO=2 vp run hello # env changed
$ node hello.mjs ✗ cache miss: envs changed, executing
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/vp-run-expansion/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ $ node -p '40+2' ✓ cache hit, replaying
42

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/yarn-install-with-options/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ success Saved lockfile.
Done in <variable>ms.

---
[vp run] cache hit, <variable>ms saved.
vp run: cache hit, <variable>ms saved.
2 changes: 2 additions & 0 deletions packages/tools/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ export function replaceUnstableOutput(output: string, cwd?: string) {
.replaceAll(/\n\s+at .+/g, '')
// replace git stash hashes: "git stash (abc1234)" => "git stash (<hash>)"
.replaceAll(/git stash \([0-9a-f]+\)/g, 'git stash (<hash>)')
// normalize cat error spacing: Windows "cat:file" vs Unix "cat: file"
.replaceAll(/\bcat:(\S)/g, 'cat: $1')
);
}

Expand Down
Loading