From 7b5a8d4231e80c903ae596b9f75166cfeaf1e32a Mon Sep 17 00:00:00 2001 From: Weyert de Boer Date: Sat, 9 Apr 2022 23:15:31 +0100 Subject: [PATCH 1/3] docs: update link to filtering page Updated the internal link to the Filtering packages page on the CLI usage page --- docs/pages/docs/reference/command-line-reference.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/docs/reference/command-line-reference.mdx b/docs/pages/docs/reference/command-line-reference.mdx index ec590df5c0b95..db54704923478 100644 --- a/docs/pages/docs/reference/command-line-reference.mdx +++ b/docs/pages/docs/reference/command-line-reference.mdx @@ -161,7 +161,7 @@ Multiple filters can be combined to select distinct sets of targets. Additionall can also exclude targets. A target that matches any filter and is not explicitly excluded will be in the final entrypoint selection. -For more detailed information about the `--filter` flag and filtering, refer to the [dedicated page in our documentation](/docs/features/filtering-packages) +For more detailed information about the `--filter` flag and filtering, refer to the [dedicated page in our documentation](/docs/features/filtering) ```sh turbo run build --filter=my-pkg From faeba8f1cba36c0731b64ca66cfdd8e3dc6e7131 Mon Sep 17 00:00:00 2001 From: Weyert de Boer Date: Thu, 26 Oct 2023 20:57:11 +0100 Subject: [PATCH 2/3] feat: allow TURBO_CACHE_DIR environment to set `--cache-dir` value --- crates/turborepo-lib/src/cli/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/turborepo-lib/src/cli/mod.rs b/crates/turborepo-lib/src/cli/mod.rs index 92e1ae40c4081..9b923cdbc2216 100644 --- a/crates/turborepo-lib/src/cli/mod.rs +++ b/crates/turborepo-lib/src/cli/mod.rs @@ -459,7 +459,7 @@ pub enum GenerateCommand { #[derive(Parser, Clone, Debug, Default, Serialize, PartialEq)] pub struct RunArgs { /// Override the filesystem cache directory. - #[clap(long)] + #[clap(long, env = "TURBO_CACHE_DIR")] pub cache_dir: Option, /// Set the number of concurrent cache operations (default 10) #[clap(long, default_value_t = 10)] From 2a4a9e238e777a62e984933ac1d498939c3de323 Mon Sep 17 00:00:00 2001 From: Chris Olszewski Date: Mon, 18 Mar 2024 11:45:21 -0700 Subject: [PATCH 3/3] chore: update snapshot tests --- turborepo-tests/integration/tests/no-args.t | 2 +- turborepo-tests/integration/tests/turbo-help.t | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/turborepo-tests/integration/tests/no-args.t b/turborepo-tests/integration/tests/no-args.t index 2aed05e65f51b..152ac332f9d78 100644 --- a/turborepo-tests/integration/tests/no-args.t +++ b/turborepo-tests/integration/tests/no-args.t @@ -42,7 +42,7 @@ Make sure exit code is 2 when no args are passed Run Arguments: --cache-dir - Override the filesystem cache directory + Override the filesystem cache directory [env: TURBO_CACHE_DIR=] --cache-workers Set the number of concurrent cache operations (default 10) [default: 10] --concurrency diff --git a/turborepo-tests/integration/tests/turbo-help.t b/turborepo-tests/integration/tests/turbo-help.t index 7b6075dffabfb..3619cf9a271fb 100644 --- a/turborepo-tests/integration/tests/turbo-help.t +++ b/turborepo-tests/integration/tests/turbo-help.t @@ -42,7 +42,7 @@ Test help flag Run Arguments: --cache-dir - Override the filesystem cache directory + Override the filesystem cache directory [env: TURBO_CACHE_DIR=] --cache-workers Set the number of concurrent cache operations (default 10) [default: 10] --concurrency @@ -147,7 +147,7 @@ Test help flag Run Arguments: --cache-dir - Override the filesystem cache directory + Override the filesystem cache directory [env: TURBO_CACHE_DIR=] --cache-workers Set the number of concurrent cache operations (default 10) [default: 10] --concurrency