Content-Length: 289040 | pFad | https://github.com/flutter/flutter/issues/145030

52 Allow for disabling auto-update check from an environment variable · Issue #145030 · flutter/flutter · GitHub
Skip to content

Allow for disabling auto-update check from an environment variable #145030

@bartekpacia

Description

@bartekpacia

Use case

I don't want to be notified by Flutter tool when new version of Flutter becomes available. Not only I always stay up to date on latest Flutter releases, but I often have to switch between versions using fvm, and I get notified about "new version" way too often.

I can do alias flutter="flutter --no-version-check", but I don't like it. I prefer to use environment variables for defining such options. Furthermore it's a usual approach followed by many CLI tools: you can configure the same setting in 3 places (config file -> env variable -> command-line flag).

I see that Flutter tool uses the cli_config package, which provides some facilities to implement the behavior I want

Proposal

Teach flutter_tools to handle FLUTTER_VERSION_CHECK env variable. If this variable will be set to false, behave as if --no-version-check was passed.


I am willing to implement this once I get a buy-in from some other team members :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/flutter/flutter/issues/145030

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy