-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.Team-specific productivity, code health, technical debt.p: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
After following the instructions listed in the plugin readme
I have the tool fail with the following stack trace.
To reproduce you can clone a fresh copy of the plugins repo or you can run rm .git/FETCH_HEAD from the root directory of plugins.
The issue is that FETCH_HEAD is not guaranteed to be present in all git directories. It is a temporary file.
Workaround for this issue is to run git fetch.
dart run ./script/tool/bin/flutter_plugin_tools.dart update-release-info --version=minimal --changelog="SOME TEXT."
Unhandled exception:
ProcessException: fatal: Not a valid object name FETCH_HEAD
Command: git merge-base FETCH_HEAD HEAD
#0 _throwIfProcessFailed (package:git/src/top_level.dart:39:5)
#1 runGit (package:git/src/top_level.dart:17:5)
<asynchronous suspension>
#2 GitVersionFinder.getBaseSha (package:flutter_plugin_tools/src/common/git_version_finder.dart:109:30)
<asynchronous suspension>
#3 GitVersionFinder.getChangedFiles (package:flutter_plugin_tools/src/common/git_version_finder.dart:36:28)
<asynchronous suspension>
#4 UpdateReleaseInfoCommand.initializeRun (package:flutter_plugin_tools/src/update_release_info_command.dart:110:25)
<asynchronous suspension>
#5 PackageLoopingCommand._runInternal (package:flutter_plugin_tools/src/common/package_looping_command.dart:280:5)
<asynchronous suspension>
#6 PackageLoopingCommand.run (package:flutter_plugin_tools/src/common/package_looping_command.dart:257:19)
<asynchronous suspension>
#7 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#8 main.<anonymous closure> (package:flutter_plugin_tools/src/main.dart:94:12)
<asynchronous suspension>
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.Team-specific productivity, code health, technical debt.p: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.