Skip to content

Commit

Permalink
disable info about new version when using prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Nov 3, 2023
1 parent 1dba972 commit 70e3149
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/patrol_cli/lib/src/runner/patrol_command_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,11 @@ Ask questions, get support at https://github.com/leancodepl/patrol/discussions''
return;
}

if (version.contains('dev')) {
// TODO: Remove this "if" when we bump pub_updater to 0.4.0.
return;
}

final latestVersion = await _pubUpdater.getLatestVersion('patrol_cli');
final isUpToDate = version == latestVersion;

Expand Down

0 comments on commit 70e3149

Please sign in to comment.