Skip to content

Commit

Permalink
Fix on --no-version-check flag
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias committed Jun 18, 2021
1 parent e6c58d8 commit 1b1c0f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.2.1

- Fix when running flutter command with --no-version-check

## 2.2.0

- Resolves channel unknown when pulling release version
Expand Down
4 changes: 1 addition & 3 deletions lib/src/commands/flutter_command.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:args/args.dart';
import 'package:fvm/exceptions.dart';

import '../../exceptions.dart';
import '../models/valid_version_model.dart';
import '../services/cache_service.dart';
import '../services/project_service.dart';
Expand Down Expand Up @@ -34,7 +34,6 @@ class FlutterCommand extends BaseCommand {
logger.trace('fvm: running version "$version"\n');
// If its not a channel silence version check
if (!validVersion.isChannel) {
args.add('--no-version-check');
_checkIfUpgradeCommand(args);
}
// Runs flutter command with pinned version
Expand All @@ -51,7 +50,6 @@ class FlutterCommand extends BaseCommand {
final validVersion = ValidVersion(cacheVersion.name);
// If its not a channel silence version check
if (!validVersion.isChannel) {
args.add('--no-version-check');
_checkIfUpgradeCommand(args);
}
return await flutterCmd(cacheVersion, args);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: fvm
description: A simple cli to manage Flutter SDK versions per project. Support
channels, releases, and local cache for fast switching between versions.
version: 2.2.0
version: 2.2.1
homepage: https://github.com/leoafarias/fvm

environment:
Expand Down

0 comments on commit 1b1c0f2

Please sign in to comment.