Skip to content

feat: add noUpdateNotifier option to turbo.json #10409

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

Merged
merged 12 commits into from
May 2, 2025

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Allow disabling checking for a new version of Turborepo via turbo.json

This PR adds a noUpdateNotifier option to turbo.json that allows disabling the update notification
that appears when a new version of Turborepo is available.

Changes

  • Added a noUpdateNotifier field to the RawTurboJson struct
  • Added a corresponding field to the ConfigurationOptions struct
  • Modified the update notifier code to check this configuration option
  • Added documentation for the new option

Fixes #8564

Link to Devin run: https://app.devin.ai/sessions/0c3ac344fa1b4ba785417b7856eceb4f
Requested by [email protected]

@devin-ai-integration devin-ai-integration bot requested review from anthonyshew and a team as code owners April 30, 2025 05:22
Copy link

vercel bot commented Apr 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 8:01pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 8:01pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 8:01pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 8:01pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 8:01pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 8:01pm
examples-svelte-web ❌ Failed (Inspect) May 2, 2025 8:01pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 8:01pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 8:01pm
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 8:01pm

@turbo-orchestrator turbo-orchestrator bot added area: docs Improvements or additions to documentation needs: triage New issues get this label. Remove it after triage labels Apr 30, 2025
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@devin-ai-integration devin-ai-integration bot changed the title Add noUpdateNotifier option to turbo.json feat: add noUpdateNotifier option to turbo.json Apr 30, 2025
Comment on lines 78 to 92
let builder = crate::config::TurborepoConfigBuilder::new(&repo_state.root);
let config = builder.build().unwrap_or_default();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to be careful here as there could be a delta between the configuration loaded this way and the actual configuration.

The only one I know of is --root-turbo-json which changes the location of the turbo.json used for configuration. Can you add that flag to the shim arg parser and use it if present in the config builder? Please add tests in the shim/parser.rs module.

@@ -2,6 +2,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let tonic_build_result = tonic_build::configure()
.build_server(true)
.file_descriptor_set_path("src/daemon/file_descriptor_set.bin")
.protoc_arg("--experimental_allow_proto3_optional")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devin-ai-integration Seriously, rewrite and get rid of this or you're fired.

let (spans, args_string) =
Self::get_spans_in_args_string(vec![idx], env::args().skip(1));

return Err(Error::EmptyCwd {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make a new error variant for this specific error?

..Default::default()
}
; "root turbo json equals"
)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test case for when the path is provided as an absolute path?

@@ -301,6 +328,7 @@ mod test {
pub color: bool,
pub no_color: bool,
pub relative_cwd: Option<&'static [&'static str]>,
pub relative_root_turbo_json: Option<&'static [&'static str]>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can simplify this by just storing the path instead of "components" since were' just using the first one.

Suggested change
pub relative_root_turbo_json: Option<&'static [&'static str]>,
pub relative_root_turbo_json: Option<&'static str>,

@chris-olszewski chris-olszewski force-pushed the devin/1745990165-no-update-notifier branch from c1a3b06 to c292090 Compare May 2, 2025 19:59
Copy link
Member

@chris-olszewski chris-olszewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was able to get this working locally

@chris-olszewski chris-olszewski enabled auto-merge (squash) May 2, 2025 20:07
@chris-olszewski chris-olszewski merged commit bc259b9 into main May 2, 2025
53 of 56 checks passed
@chris-olszewski chris-olszewski deleted the devin/1745990165-no-update-notifier branch May 2, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Improvements or additions to documentation needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow disabling checking for a new version of Turborepo
2 participants