chore(ci): fix turbo input path globs (#52414)
This PR fixes turbo.json inputs to avoid cache hit when it should be cache miss.
Example PR it was incorrectly cached:
- [PR 52407](https://github.com/vercel/next.js/pull/52407)
- [Commit 06b780](06b780e15e
)
- [Logs with cache hit](https://github.com/vercel/next.js/actions/runs/5488474758/jobs/10001427837#step:27:29)
The docs mention the glob is relative to the workspace (aka package) directory, not the monorepo root.
> inputs globs must be specified as relative paths rooted at the workspace directory.
https://turbo.build/repo/docs/reference/configuration#inputs
This commit is contained in:
parent
9ccc6fc4a6
commit
0abc874ed5
1 changed files with 17 additions and 17 deletions
34
turbo.json
34
turbo.json
|
@ -41,35 +41,35 @@
|
|||
"//#typescript": {},
|
||||
"rust-check": {
|
||||
"inputs": [
|
||||
".cargo/**",
|
||||
"packages/next-swc/crates/**",
|
||||
"**/Cargo.toml",
|
||||
"**/Cargo.lock"
|
||||
"../../.cargo/**",
|
||||
"../../packages/next-swc/crates/**",
|
||||
"../../**/Cargo.toml",
|
||||
"../../**/Cargo.lock"
|
||||
]
|
||||
},
|
||||
"test-cargo-unit": {
|
||||
"inputs": [
|
||||
".cargo/**",
|
||||
"packages/next-swc/crates/**",
|
||||
"**/Cargo.toml",
|
||||
"**/Cargo.lock"
|
||||
"../../.cargo/**",
|
||||
"../../packages/next-swc/crates/**",
|
||||
"../../**/Cargo.toml",
|
||||
"../../**/Cargo.lock"
|
||||
]
|
||||
},
|
||||
"test-cargo-integration": {
|
||||
"inputs": [
|
||||
".cargo/**",
|
||||
"packages/next-swc/crates/**",
|
||||
"packages/next/**",
|
||||
"**/Cargo.toml",
|
||||
"**/Cargo.lock"
|
||||
"../../.cargo/**",
|
||||
"../../packages/next-swc/crates/**",
|
||||
"../../packages/next/**",
|
||||
"../../**/Cargo.toml",
|
||||
"../../**/Cargo.lock"
|
||||
]
|
||||
},
|
||||
"test-cargo-bench": {
|
||||
"inputs": [
|
||||
".cargo/**",
|
||||
"packages/next-swc/crates/**",
|
||||
"**/Cargo.toml",
|
||||
"**/Cargo.lock"
|
||||
"../../.cargo/**",
|
||||
"../../packages/next-swc/crates/**",
|
||||
"../../**/Cargo.toml",
|
||||
"../../**/Cargo.lock"
|
||||
]
|
||||
},
|
||||
"//#get-test-timings": {
|
||||
|
|
Loading…
Reference in a new issue