Skip to content

Conversation

@DevaanshKathuria
Copy link
Contributor

@DevaanshKathuria DevaanshKathuria commented Nov 18, 2025

This pull request fixes a bug where setting "noUpdateNotifier": true in turbo.json did not suppress update notifications.
Turbo continued printing out-of-date version warnings regardless of the flag’s value.
What was happening
Even when users explicitly disabled update notifications using:
{ "noUpdateNotifier": true }
Turbo still displayed upgrade messages when the installed version was behind the latest available version.
This violated the expected behavior described in Issue #10940.
What this PR does:

  • Ensures that when noUpdateNotifier is set to true, Turbo skips the update-notifier check entirely.
  • Prevents unnecessary noise in CI pipelines and automated scripts.
  • Restores expected behavior and aligns with Turbo’s configuration contract.

How I verified the fix:
Added "noUpdateNotifier": true to turbo.json.
Ran Turbo using an intentionally outdated version.
Confirmed that no update notification was printed.
Verified that notifications still appear when the flag is not set.

Linked Issue
Fixes: #10940

CLOSES TURBO-4878

@DevaanshKathuria DevaanshKathuria requested a review from a team as a code owner November 18, 2025 10:26
@vercel
Copy link
Contributor

vercel bot commented Nov 18, 2025

@DevaanshKathuria is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@DevaanshKathuria DevaanshKathuria changed the title fix(cli): correct version mismatch causing noUpdateNotifier to fail Fix(cli): correct version mismatch causing noUpdateNotifier to fail Nov 18, 2025
@DevaanshKathuria DevaanshKathuria changed the title Fix(cli): correct version mismatch causing noUpdateNotifier to fail Fix: correct version mismatch causing noUpdateNotifier to fail Nov 18, 2025
@DevaanshKathuria DevaanshKathuria changed the title Fix: correct version mismatch causing noUpdateNotifier to fail fix: correct version mismatch causing noUpdateNotifier to fail Nov 18, 2025
@DevaanshKathuria DevaanshKathuria changed the title fix: correct version mismatch causing noUpdateNotifier to fail fix: Correct version mismatch causing noUpdateNotifier to fail Nov 18, 2025
@DevaanshKathuria
Copy link
Contributor Author

DevaanshKathuria commented Nov 21, 2025

Hey @tknickman, I hope you're doing well. Whenever you get a moment, could you please take a look at the PR and share your feedback on whether it’s ready to be merged? Thanks!

@DevaanshKathuria
Copy link
Contributor Author

Hi @tknickman! Just checking in on the PR I submitted a while ago.
Whenever you get a moment, please take a look. Thanks!

@DevaanshKathuria
Copy link
Contributor Author

DevaanshKathuria commented Dec 2, 2025

Hey @anthonyshew! If you get a little time, could you please review this PR for me?
My assigned reviewer seems busy, so any help would be great. Thanks a lot!

Copy link
Contributor

@anthonyshew anthonyshew left a comment

Choose a reason for hiding this comment

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

I left a few comments in the file changes, and one more to add.

Take a look at these codepointers:

  • crates/turborepo-lib/src/shim/mod.rs:319 - checks !config.no_update_notifier()
  • crates/turborepo-lib/src/shim/mod.rs:344 - passes config.no_update_notifier.unwrap_or(false) to function
  • crates/turborepo-updater/src/lib.rs:109 - checks the same value again

This looks redundant, like we're checking twice.

You can either:

  • Remove the parameter from display_update_check() since the caller already guards the call
  • Or remove the outer guard and let the updater own all skip logic

Thanks for taking the time to fix this! I think we will be able to merge after these are fixed.

@DevaanshKathuria
Copy link
Contributor Author

DevaanshKathuria commented Dec 6, 2025

Hey @anthonyshew, I've made all the required changes. Please review them and let me know if any further changes are needed.

Copy link
Contributor

@anthonyshew anthonyshew left a comment

Choose a reason for hiding this comment

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

The PR now has no functional changes.
CleanShot 2025-12-06 at 06 18 44@2x

@DevaanshKathuria
Copy link
Contributor Author

DevaanshKathuria commented Dec 6, 2025

@anthonyshew, I’m really sorry that I didn’t compare the latest commit with the original code. I can try the other option. How about I remove the outer guard so the updater can use its own logic, as you suggested?

@DevaanshKathuria
Copy link
Contributor Author

Hi @anthonyshew! Just checking in on the PR.
Whenever you get a moment, please take a look. Thanks!

@anthonyshew
Copy link
Contributor

#10941 was already working on this but I'll pick this work back up from this one.

@vercel
Copy link
Contributor

vercel bot commented Dec 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
examples-basic-web Ready Ready Preview, Comment Dec 20, 2025 7:01pm
examples-designsystem-docs Ready Ready Preview, Comment Dec 20, 2025 7:01pm
examples-gatsby-web Ready Ready Preview, Comment Dec 20, 2025 7:01pm
examples-kitchensink-blog Ready Ready Preview, Comment Dec 20, 2025 7:01pm
examples-nonmonorepo Ready Ready Preview, Comment Dec 20, 2025 7:01pm
examples-svelte-web Ready Ready Preview, Comment Dec 20, 2025 7:01pm
examples-tailwind-web Ready Ready Preview, Comment Dec 20, 2025 7:01pm
examples-vite-web Ready Ready Preview, Comment Dec 20, 2025 7:01pm
turbo-site Ready Ready Preview, Comment Dec 20, 2025 7:01pm

@anthonyshew anthonyshew merged commit 3e0eefb into vercel:main Dec 20, 2025
99 checks passed
ch4og pushed a commit to csmplay/mapban that referenced this pull request Dec 23, 2025
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [turbo](https://turborepo.com) ([source](https://github.com/vercel/turborepo)) | [`2.6.3` -> `2.7.1`](https://renovatebot.com/diffs/npm/turbo/2.6.3/2.7.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/turbo/2.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/turbo/2.6.3/2.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>vercel/turborepo (turbo)</summary>

### [`v2.7.1`](https://github.com/vercel/turborepo/releases/tag/v2.7.1): Turborepo v2.7.1

[Compare Source](vercel/turborepo@v2.7.0...v2.7.1)

<!-- Release notes generated using configuration in .github/release.yml at v2.7.1 -->

#### What's Changed

##### Docs

- docs: Release post for 2.7 by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11272](vercel/turborepo#11272)

##### Examples

- fix: Typo in example with-solid README.md description by [@&#8203;jack-dev-crypto](https://github.com/jack-dev-crypto) in [#&#8203;11287](vercel/turborepo#11287)

##### Changelog

- fix: Correctly validate workspace root as package by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11284](vercel/turborepo#11284)
- fix: Overly aggressive path checking in microfrontends loading by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11286](vercel/turborepo#11286)
- chore(boundaries): Allow packages to import themselves by [@&#8203;NicholasLYang](https://github.com/NicholasLYang) in [#&#8203;10202](vercel/turborepo#10202)
- feat(query): Provide query for external dependencies by [@&#8203;chris-olszewski](https://github.com/chris-olszewski) in [#&#8203;9929](vercel/turborepo#9929)
- fix: Correct version mismatch causing noUpdateNotifier to fail by [@&#8203;DevaanshKathuria](https://github.com/DevaanshKathuria) in [#&#8203;11133](vercel/turborepo#11133)
- chore: Format version printing similar to rest of prelude by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11289](vercel/turborepo#11289)

#### New Contributors

- [@&#8203;jack-dev-crypto](https://github.com/jack-dev-crypto) made their first contribution in [#&#8203;11287](vercel/turborepo#11287)

**Full Changelog**: <vercel/turborepo@v2.7.0...v2.7.1>

### [`v2.7.0`](https://github.com/vercel/turborepo/releases/tag/v2.7.0): Turborepo v2.7.0

[Compare Source](vercel/turborepo@v2.6.3...v2.7.0)

<!-- Release notes generated using configuration in .github/release.yml at v2.7.0 -->

#### What's Changed

##### Docs

- docs(security): Update Next.js by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11208](vercel/turborepo#11208)
- docs: Remove flags code by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11209](vercel/turborepo#11209)
- docs: Cleanup Sentry from gitignore by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11210](vercel/turborepo#11210)
- docs: Comment out Tinybird by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11211](vercel/turborepo#11211)
- docs(fix): Sitemap by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11207](vercel/turborepo#11207)
- docs: Revert "Comment out Tinybird" by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11223](vercel/turborepo#11223)
- docs: Move search to built-in by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11224](vercel/turborepo#11224)
- docs: fix typo in design-system.css comment by [@&#8203;YASHRDX0001](https://github.com/YASHRDX0001) in [#&#8203;11231](vercel/turborepo#11231)
- chore: Upgrade pnpm to 9 by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11226](vercel/turborepo#11226)
- chore: Update pnpm to version 10 by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11237](vercel/turborepo#11237)
- fix: React Server Components CVE vulnerabilities by [@&#8203;vercel](https://github.com/vercel)\[bot] in [#&#8203;11245](vercel/turborepo#11245)
- docs: Add `turboExtendsKeyword` future flag and `$TURBO_EXTENDS$` microsyntax by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11246](vercel/turborepo#11246)
- docs: Fix Bun filtered install commands by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11260](vercel/turborepo#11260)
- docs: Add `turbo.json` composition docs by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11247](vercel/turborepo#11247)
- feat: Turborepo Devtools by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11263](vercel/turborepo#11263)
- fix: Improve layouts and task graph sourcing for devtools" by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11269](vercel/turborepo#11269)
- docs: Devtools by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11270](vercel/turborepo#11270)
- chore: Remove future flags for nonRootExtends and turboExtendsKeyword in preparation for stable release by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11280](vercel/turborepo#11280)

##### create-turbo

- fix(cli): Preserve exit codes in notifyUpdate functions by [@&#8203;pyrytakala](https://github.com/pyrytakala) in [#&#8203;11153](vercel/turborepo#11153)

##### turbo-ignore

- fix: Quoting in turbo-ignore commands by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11239](vercel/turborepo#11239)

##### eslint

- fix: Upgrade Next.js to 15.5.7 (CVE-2025-55182) by [@&#8203;ctate](https://github.com/ctate) in [#&#8203;11232](vercel/turborepo#11232)

##### [@&#8203;turbo/repository](https://github.com/turbo/repository)

- chore: Update to Rust 1.92.0 by [@&#8203;ognevny](https://github.com/ognevny) in [#&#8203;11250](vercel/turborepo#11250)

##### Examples

- examples(dev-deps): bump turbo from 2.6.1 to 2.6.3 in /examples/with-shell-commands by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11217](vercel/turborepo#11217)
- examples(dev-deps): bump the basic group in /examples/basic with 2 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11218](vercel/turborepo#11218)
- examples(dev-deps): bump the with-svelte group in /examples/with-svelte with 3 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11219](vercel/turborepo#11219)
- examples: Use slim image (debian) for prepare and builder stage, use latest no… by [@&#8203;mrr11k](https://github.com/mrr11k) in [#&#8203;11228](vercel/turborepo#11228)
- examples(dev-deps): bump the with-svelte group in /examples/with-svelte with 2 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11254](vercel/turborepo#11254)
- examples(dev-deps): bump typescript-eslint from 8.48.1 to 8.49.0 in /examples/basic in the basic group by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11253](vercel/turborepo#11253)
- examples(deps): bump react from 19.2.0 to 19.2.3 in /examples/non-monorepo by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11255](vercel/turborepo#11255)

##### Changelog

- fix(turbo-utils): Add test for conflicting configs and remove stale TODO by [@&#8203;deepakpathik](https://github.com/deepakpathik) in [#&#8203;11201](vercel/turborepo#11201)
- feat: Yarn 4 catalogs by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11115](vercel/turborepo#11115)
- fix: Add Windows-specific env var to default passthroughs by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11233](vercel/turborepo#11233)
- fix: Add fine grained interruptible task restarts in watch mode by [@&#8203;johnpyp](https://github.com/johnpyp) in [#&#8203;11135](vercel/turborepo#11135)
- perf: Find tasks impacted by packages faster by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11235](vercel/turborepo#11235)
- ci: Fix release pipeline by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11240](vercel/turborepo#11240)
- ci: Fix release pipeline by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11241](vercel/turborepo#11241)
- fix: Compose tasks when composing turbo.json by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11248](vercel/turborepo#11248)
- chore: Run pre-commit fmt on all files by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11261](vercel/turborepo#11261)
- feat: Task-level `extends` field by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11259](vercel/turborepo#11259)
- fix: Allow root microfrontends.json config for [@&#8203;vercel/microfrontends](https://github.com/vercel/microfrontends) by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11264](vercel/turborepo#11264)
- chore: Fix lint-staged and orphan GitHub Action by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11275](vercel/turborepo#11275)
- chore: Remove coverage tooling by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11276](vercel/turborepo#11276)
- chore: Clear false positive unused warnings by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11277](vercel/turborepo#11277)
- ci: Fix flaky test (hopefully) by [@&#8203;anthonyshew](https://github.com/anthonyshew) in [#&#8203;11278](vercel/turborepo#11278)

#### New Contributors

- [@&#8203;deepakpathik](https://github.com/deepakpathik) made their first contribution in [#&#8203;11201](vercel/turborepo#11201)
- [@&#8203;YASHRDX0001](https://github.com/YASHRDX0001) made their first contribution in [#&#8203;11231](vercel/turborepo#11231)
- [@&#8203;ctate](https://github.com/ctate) made their first contribution in [#&#8203;11232](vercel/turborepo#11232)
- [@&#8203;johnpyp](https://github.com/johnpyp) made their first contribution in [#&#8203;11135](vercel/turborepo#11135)
- [@&#8203;vercel](https://github.com/vercel)\[bot] made their first contribution in [#&#8203;11245](vercel/turborepo#11245)

**Full Changelog**: <vercel/turborepo@v2.6.3...v2.7.0>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xNC4yIiwidXBkYXRlZEluVmVyIjoiNDIuMTQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://git.csmpro.ru/csmpro/mapban/pulls/77
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

noUpdateNotifier does not supress update notifications

2 participants