Skip to content

App fails to run with custom FLUTTER_GIT_URL environment variable on master #164093

@TahaTesser

Description

@TahaTesser

Steps to reproduce

If you use a custom FLUTTER_GIT_URL for your fork or any other reason.

Here I use custom FLUTTER_GIT_URL for my fork. However, after #163761 app fails to run on master.

flutter doctor -v

[✓] Flutter (Channel main, 3.30.0-1.0.pre.310, on macOS 15.3.1 24D70 darwin-arm64, locale en-US) [2.4s]
    • Flutter version 3.30.0-1.0.pre.310 on channel main at /Users/tahatesser/flutterUpstream repository git@github.com:TahaTesser/flutter.gitFLUTTER_GIT_URL = git@github.com:TahaTesser/flutter.gitFramework revision 8cf41e9b4f (5 hours ago), 2025-02-25 09:32:03 +0200Engine revision 8cf41e9b4fDart version 3.8.0 (build 3.8.0-132.0.dev)
    • DevTools version 2.43.0
 ~/ echo $FLUTTER_GIT_URL
[email protected]:TahaTesser/flutter.git

Run an app on master or main after #163761 with a custom FLUTTER_GIT_URL for a fork.

App fails to run

Downloading ios tools...
Downloading ios-profile tools...
Downloading ios-release tools...
Resolving dependencies...
Downloading packages...
  material_color_utilities 0.11.1 (0.12.0 available)
Got dependencies!
1 package has newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
FLUTTER_GIT_URL is used by the framework and cannot be set in the environment. Use FlutterVersion to access it in Flutter code

Exited (1).

If you ignore flutter doctor and not set FLUTTER_GIT_URL, the app runs after #163761.

[!] Flutter (Channel main, 3.30.0-1.0.pre.310, on macOS 15.3.1 24D70 darwin-arm64, locale en-US) [3.9s]
    • Flutter version 3.30.0-1.0.pre.310 on channel main at /Users/tahatesser/flutter
    ! Upstream repository git@github.com:TahaTesser/flutter.git is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to git@github.com:TahaTesser/flutter.git to dismiss this
      error.
    • Framework revision 8cf41e9b4f (5 hours ago), 2025-02-25 09:32:03 +0200Engine revision 8cf41e9b4fDart version 3.8.0 (build 3.8.0-132.0.dev)
    • DevTools version 2.43.0If those were intentional, you can disregard the above warnings; however it is recommended to use "git"
      directly to perform update checks and upgrades.

Expected results

App runs just as before

Actual results

App fails to run

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

Labels

c: fatal crashCrashes that terminate the processc: regressionIt was better in the past than it is nowfound in release: 3.30Found to occur in 3.30has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions