Skip to content

Commit

Permalink
Update error message in InstallPluginCommand with update instructions (
Browse files Browse the repository at this point in the history
…#176)

- error message when `pub` in embedded Dart SDK doesn't yet support `git-ref` or `git-path` parameters
  • Loading branch information
Giuspepe authored Jan 10, 2023
1 parent 1169337 commit 0e3bd25
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,7 @@ Directory _getPackageRootDirForHostedOrGitSource(ArgResults args) {
'The --$parameter parameter is not yet supported by the pub tool in '
'the Dart SDK your sidekick CLI is using.\n'
'It is available from Dart $requiredVersion.\n'
'Try updating the Dart SDK of your sidekick CLI.\n'
// TODO update instructions when https://github.com/phntmxyz/sidekick/issues/149 is resolved
'You can do this by increasing the minimum sdk constraint of your '
'sidekick CLI in its pubspec.yaml. Then, execute the entrypoint of '
'your sidekick CLI again to download the new Dart SDK version.';
'Try running ${cyan('$cliName sidekick update')} to update the Dart SDK of your sidekick CLI.';
if (progress.lines.contains('Could not find an option named "git-path".')) {
throw parameterNotAvailableErrorMessage('git-path', '2.17');
}
Expand Down

0 comments on commit 0e3bd25

Please sign in to comment.