Skip to content

Commit

Permalink
Merge branch 'master' of github.com:leoafarias/fvm
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias committed Apr 1, 2021
2 parents 78fd94f + 9091e0b commit 435aa3d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions lib/src/models/cache_version_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import '../utils/helpers.dart';

/// Cache Version model
class CacheVersion {
String _sdkVersion;

/// Name of the version
final String name;

Expand Down Expand Up @@ -41,4 +39,8 @@ class CacheVersion {
final otherVersion = assignVersionWeight(other.name);
return version.compareTo(otherVersion);
}

String toString() {
return name;
}
}
4 changes: 3 additions & 1 deletion lib/src/utils/helpers.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dart:async';
import 'dart:io';

import 'package:fvm/src/utils/logger.dart';
import 'package:path/path.dart';
import 'package:process_run/shell.dart';
import 'package:version/version.dart';
Expand Down Expand Up @@ -37,7 +38,8 @@ Future<void> createLink(Link source, FileSystemEntity target) async {
await source.delete();
}
await source.create(target.path);
} on FileSystemException {
} on FileSystemException catch (e) {
logger.trace(e.message);
if (Platform.isWindows) {
throw const FvmInternalError(
'''On Windows FVM requires to run in developer mode or as an administrator''',
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,6 +1,6 @@
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.0.0-dev.3
version: 2.0.0-dev.4
homepage: https://github.com/leoafarias/fvm

environment:
Expand Down

0 comments on commit 435aa3d

Please sign in to comment.