master channel fails to run in git bash
Ran into issue when I tried to use the master channel for the first time...
$ puro --version
[i] Puro 1.4.11 (distribution/windows-x64)
Dart 3.7.2 (stable) (Tue Mar 11 04:27:50 2025 -0700) on "windows_x64"
$ puro create master
[✓] Created new environment at `C:\Users\teeka\.puro\envs\master\flutter`
$ puro ls
[i] Environments:
~ stable (stable / 3.35.4 / d693b4b9db)
beta (not installed)
master (bea9e8206c)
$ puro -e stable flutter --version
Flutter 3.35.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d693b4b9db (3 weeks ago) • 2025-09-16 14:27:41 +0000
Engine • hash feee8ee8fb8b975dd9990f86d3bda11e6e75faf3 (revision c298091351) (24 days ago) • 2025-09-15 14:04:24.000Z
Tools • Dart 3.9.2 • DevTools 2.48.0
$ puro -e master flutter --version
Process::Exec - (null)
Anything I missed?
Can you try puro rm master and then puro create stable?
Can you try
puro rm masterand thenpuro create stable?
Sorry I'm slightly confused. Did you mean puro create master? If so, then I already did that, but it's still giving the same error.
Just found out that puro gave the error when running in git bash (my apology for failing to mention this earlier). When running in cmd.exe, things seem to work fine somehow.
C:\Users\teeka>puro -e master flutter --version
Flutter 3.37.0-1.0.pre-492 • channel [user-branch] • unknown source
Framework • revision bea9e8206c (3 days ago) • 2025-10-09 19:29:37 -0400
Engine • hash eb503d9cd09c407641d8adc08b3e97d90e1b6a6e (revision bea9e8206c) (3 days ago) • 2025-10-09 23:29:37.000Z
Tools • Dart 3.11.0 (build 3.11.0-8.0.dev) • DevTools 2.51.0
Obviously cmd.exe isn't my favorite work env, so it's important to rectify/workaround this as far as I'm concerned. Thanks.
Just to update that I don't see the same error in PowerShell. So this issue seems to be specific to git bash.
Here are the output of puro --verbose in git-bash and PowerShell for comparison.
PowerShell:
PS C:\Users\teeka> puro --verbose -e master flutter --version
[V] Started waiting for lock on C:\Users\teeka\.puro\prefs.json
[V] Waiting for lock on C:\Users\teeka\.puro\prefs.json took 3ms
[V] Checking if update is available
[V] Started waiting for lock on C:\Users\teeka\.puro\latest_version
[V] Waiting for lock on C:\Users\teeka\.puro\latest_version took 0ms
[V] Flutter SDK: C:\Users\teeka\.puro\envs\master\flutter
[V] Started waiting for lock on C:\Users\teeka\.puro\envs\master\prefs.json
[V] Waiting for lock on C:\Users\teeka\.puro\envs\master\prefs.json took 0ms
[V] git failed with exit code 128
[V] Started waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock
[V] Waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock took 0ms
[V] Started waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock
[V] Waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock took 0ms
[V] Setting up flutter tool took 369ms
Flutter 3.37.0-1.0.pre-566 • channel [user-branch] • unknown source
Framework • revision 2f110cc7e5 (7 hours ago) • 2025-10-16 19:07:39 -0700
Engine • hash b1412aa317bcfd3590a02eb108b9fe0ba9e53e51 (revision 2f110cc7e5) (6 hours ago) • 2025-10-17 02:07:39.000Z
Tools • Dart 3.11.0 (build 3.11.0-25.0.dev) • DevTools 2.51.0
PS C:\Users\teeka>
Git-bash:
$ puro --verbose -e master flutter --version
[V] Started waiting for lock on C:\Users\teeka\.puro\prefs.json
[V] Waiting for lock on C:\Users\teeka\.puro\prefs.json took 1ms
[V] Checking if update is available
[V] Started waiting for lock on C:\Users\teeka\.puro\latest_version
[V] Waiting for lock on C:\Users\teeka\.puro\latest_version took 0ms
[V] Flutter SDK: C:\Users\teeka\.puro\envs\master\flutter
[V] Started waiting for lock on C:\Users\teeka\.puro\envs\master\prefs.json
[V] Waiting for lock on C:\Users\teeka\.puro\envs\master\prefs.json took 0ms
[V] git failed with exit code 128
[V] Started waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock
[V] Waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock took 0ms
[V] Started waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock
[V] Waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock took 0ms
[V] Setting up flutter tool took 247ms
Process::Exec - (null)
$
This is probably just a busted git bash install, use --log-level=4 to see what commands its actually running
@pingbird as requested
$ puro --log-level=4 -e master flutter --version
[D] envPuroRoot: C:\Users\teeka\.puro
[D] binPuroRoot: null
[D] firstRun: false
[D] legacyPubCache: null
[V] Started waiting for lock on C:\Users\teeka\.puro\prefs.json
[V] Waiting for lock on C:\Users\teeka\.puro\prefs.json took 0ms
[D] puroRootDir: LocalDirectory: 'C:\Users\teeka\.puro'
[D] puroRoot (resolved): LocalDirectory: 'C:\Users\teeka\.puro'
[D] target: PuroBuildTarget.windowsX64
[D] Platform.executable: C:\Users\teeka\.puro\bin\puro.exe
[D] Platform.resolvedExecutable: C:\Users\teeka\.puro\bin\puro.exe
[D] Platform.script: file:///C:/Users/teeka/.puro/bin/puro.exe
[D] Platform.packageConfig: null
[D] No package root: Platform.packageConfig is null
[D] packageRoot: null
[D] executablePath: c:\users\teeka\.puro\bin\puro.exe
[D] scriptPath: c:\users\teeka\.puro\bin\puro.exe
[D] scriptExtension: .exe
[D] installationType: PuroInstallationType.distribution
[D] version: 1.4.11
[V] Checking if update is available
[V] Started waiting for lock on C:\Users\teeka\.puro\latest_version
[V] Waiting for lock on C:\Users\teeka\.puro\latest_version took 0ms
[D] lastNotification: 2025-05-19 14:36:48.760333
[D] latestVersion: 1.4.11
[D] isOutOfDate: false
[D] willNotify: false
[D] shouldVersionCheck: false
[D] lastVersionCheck: 2025-10-18 17:11:14.874024
[V] Flutter SDK: C:\Users\teeka\.puro\envs\master\flutter
[V] Started waiting for lock on C:\Users\teeka\.puro\envs\master\prefs.json
[V] Waiting for lock on C:\Users\teeka\.puro\envs\master\prefs.json took 0ms
[D] [git 9828] C:\Users\teeka\.puro\envs\master\flutter> git show HEAD:bin/internal/engine.version
[D] git: fatal: path 'bin/internal/engine.version' exists on disk, but not in 'HEAD'
[D] [git 9828] finished with exit code 128 in 36ms
[V] git failed with exit code 128
[D] [git 18340] C:\Users\teeka\.puro\envs\master\flutter> git remote -v
[D] git: origin https://github.com/flutter/flutter.git (fetch)
[D] git: origin https://github.com/flutter/flutter.git (push)
[D] [git 18340] finished with exit code 0 in 29ms
[D] [git 6028] C:\Users\teeka\.puro\envs\master\flutter> git merge-base HEAD origin/master
[D] git: 2f110cc7e587cebb22bf6898e7b33d13c843ce21
[D] [git 6028] finished with exit code 0 in 33ms
[D] flutterCache.engineVersion: 2f110cc7e587cebb22bf6898e7b33d13c843ce21
[D] flutterConfig.engineVersion: 2f110cc7e587cebb22bf6898e7b33d13c843ce21
[V] Started waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock
[V] Waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock took 2ms
[D] [git 19064] C:\Users\teeka\.puro\envs\master\flutter> git rev-parse HEAD
[D] git: 2f110cc7e587cebb22bf6898e7b33d13c843ce21
[D] [git 19064] finished with exit code 0 in 34ms
[D] flutterCommit: 2f110cc7e587cebb22bf6898e7b33d13c843ce21
[V] Started waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock
[V] Waiting for lock on C:\Users\teeka\.puro\envs\master\update.lock took 0ms
[V] Setting up flutter tool took 161ms
[D] [git 13420] C:\Users\teeka\.puro\envs\master\flutter> git show HEAD:bin/internal/shared.sh
[D] [git 13420] finished with exit code 0 in 41ms
[D] [dart.exe 14972] > C:\Users\teeka\.puro\envs\master\flutter\bin\cache\dart-sdk\bin\dart.exe --packages=C:\Users\teeka\.puro\envs\master\flutter\packages\flutter_tools\.dart_tool\package_config.json C:\Users\teeka\.puro\shared\flutter_tools\2f110cc7e587cebb22bf6898e7b33d13c843ce21\flutter_tools.snapshot --version
Process::Exec - (null)
[D] [dart.exe 14972] finished with exit code -1 in 21ms