Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TURBO_CACHE_DIR env for --cache-dir flag #6294

Merged
merged 30 commits into from Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7b5a8d4
docs: update link to filtering page
weyert Apr 9, 2022
f99ad52
Merge pull request #1 from weyert/chore-update-cli-docs
weyert Apr 9, 2022
9ce11d8
Merge branch 'vercel:main' into main
weyert Apr 26, 2022
cda35f3
Merge branch 'vercel:main' into main
weyert Apr 29, 2022
e9a2d16
Merge branch 'vercel:main' into main
weyert May 23, 2022
1f964fd
Merge branch 'vercel:main' into main
weyert Jun 17, 2022
9dd01f0
Merge branch 'vercel:main' into main
weyert Jun 30, 2022
89b8b5f
Merge branch 'vercel:main' into main
weyert Jul 27, 2022
1dcd5df
Merge branch 'vercel:main' into main
weyert Sep 12, 2022
9cf333b
Merge branch 'vercel:main' into main
weyert Oct 19, 2022
b43ab56
Merge branch 'vercel:main' into main
weyert Oct 25, 2022
7d1f956
Merge branch 'vercel:main' into main
weyert Nov 1, 2022
bcf2997
Merge branch 'vercel:main' into main
weyert Oct 4, 2023
1b4fe6f
Merge branch 'vercel:main' into main
weyert Oct 26, 2023
faeba8f
feat: allow TURBO_CACHE_DIR environment to set `--cache-dir` value
weyert Oct 26, 2023
cd9f51c
Merge branch 'main' into add-turbo-cache-env
weyert Oct 30, 2023
9b02896
Merge branch 'vercel:main' into add-turbo-cache-env
weyert Mar 2, 2024
8fef556
Merge branch 'main' into add-turbo-cache-env
chris-olszewski Mar 4, 2024
b22da40
Merge branch 'main' into add-turbo-cache-env
weyert Mar 7, 2024
7a4781e
Merge branch 'main' into add-turbo-cache-env
chris-olszewski Mar 7, 2024
a5d60b7
Merge branch 'main' into add-turbo-cache-env
weyert Mar 7, 2024
049a15d
Merge branch 'main' into add-turbo-cache-env
weyert Mar 8, 2024
9163c30
Merge branch 'main' into add-turbo-cache-env
weyert Mar 12, 2024
957bfb3
Merge branch 'main' into add-turbo-cache-env
weyert Mar 13, 2024
b9bc963
Merge branch 'main' into add-turbo-cache-env
anthonyshew Mar 13, 2024
231b6ca
Merge branch 'main' into add-turbo-cache-env
weyert Mar 14, 2024
ae8fe90
Merge branch 'main' into add-turbo-cache-env
anthonyshew Mar 15, 2024
2a4a9e2
chore: update snapshot tests
chris-olszewski Mar 18, 2024
ae24264
Merge pull request #2 from vercel/add-turbo-cache-env
weyert Mar 18, 2024
f398a97
Merge branch 'main' into add-turbo-cache-env
weyert Mar 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/turborepo-lib/src/cli/mod.rs
Expand Up @@ -627,7 +627,7 @@ fn path_non_empty(s: &str) -> Result<Utf8PathBuf, String> {
])]
pub struct RunArgs {
/// Override the filesystem cache directory.
#[clap(long, value_parser = path_non_empty)]
#[clap(long, value_parser = path_non_empty, env = "TURBO_CACHE_DIR")]
pub cache_dir: Option<Utf8PathBuf>,
/// Set the number of concurrent cache operations (default 10)
#[clap(long, default_value_t = DEFAULT_NUM_WORKERS)]
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/integration/tests/no-args.t
Expand Up @@ -42,7 +42,7 @@ Make sure exit code is 2 when no args are passed

Run Arguments:
--cache-dir <CACHE_DIR>
Override the filesystem cache directory
Override the filesystem cache directory [env: TURBO_CACHE_DIR=]
--cache-workers <CACHE_WORKERS>
Set the number of concurrent cache operations (default 10) [default: 10]
--concurrency <CONCURRENCY>
Expand Down
4 changes: 2 additions & 2 deletions turborepo-tests/integration/tests/turbo-help.t
Expand Up @@ -42,7 +42,7 @@ Test help flag

Run Arguments:
--cache-dir <CACHE_DIR>
Override the filesystem cache directory
Override the filesystem cache directory [env: TURBO_CACHE_DIR=]
--cache-workers <CACHE_WORKERS>
Set the number of concurrent cache operations (default 10) [default: 10]
--concurrency <CONCURRENCY>
Expand Down Expand Up @@ -147,7 +147,7 @@ Test help flag

Run Arguments:
--cache-dir <CACHE_DIR>
Override the filesystem cache directory
Override the filesystem cache directory [env: TURBO_CACHE_DIR=]
--cache-workers <CACHE_WORKERS>
Set the number of concurrent cache operations (default 10) [default: 10]
--concurrency <CONCURRENCY>
Expand Down