From 4472011098903f83e779b0c7b6c4a8690cc0983f Mon Sep 17 00:00:00 2001 From: leoafarias Date: Tue, 4 May 2021 06:53:30 -0400 Subject: [PATCH] Fixes update link --- CHANGELOG.md | 20 ++++++++++++++++++++ lib/src/version.dart | 2 +- lib/src/workflows/ensure_cache.workflow.dart | 8 ++++---- pubspec.yaml | 2 +- 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09c48f4f..5abc87e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.2-dev.0 + +- Fixes regression when running `fvm install` + ## 2.0.1 - Fix issue when retrieving settings [#281](https://github.com/leoafarias/fvm/issues/281) @@ -5,19 +9,29 @@ ## 2.0.0 - Feature: Environments - Set Flutter sdk versions per project environment. + - Feature: Doctor - Easily view the Flutter version configure for the project and configuration state + - Feature: Spawn - Easily proxy Flutter commands through any cached version + - Feature: Commits - Ability to install/use commits as the pinned SDK version. + - Feature: Custom versions - Manage custom sdk versions by add `custom_` in front of the version. + - Improvements: null-safety + - Improvements: Global - Create own command to set global versions. Deprecated "--global" flag. + - Improvements: Flutter command proxy now defaults to FVM global configured version before looking for one configured on PATH + - Improvements: Better error messaging, notifications and logging + - Improvements: Many quality of life improvements ## 1.3.8 - Issue on install [#242](https://github.com/leoafarias/fvm/issues/242) + - Auto linking[#207](https://github.com/leoafarias/fvm/issues/207) ## 1.3.7 @@ -27,7 +41,9 @@ ## 1.3.6 - Enhancement: Added PATH env on Flutter processs. For better third party tooling support. + - Fix: Updated Grinder dependencies + - Fix: Better ancestor lookup logic for monorepo setups. [#180](https://github.com/leoafarias/fvm/issues/180) ## 1.3.5+1 @@ -54,9 +70,13 @@ ## 1.3.0 - Bug fixes and improvements 😂 + - Implemented ability to change cachePath` on settings [#101](https://github.com/leoafarias/fvm/issues/101) + - Improved UX with Flutter run command [#124](https://github.com/leoafarias/fvm/issues/124) + - Added a notice on Windows to run as developer mode or administrator + - Ability to set Flutter Git Repo URL (Advanced) ## 1.2.3 diff --git a/lib/src/version.dart b/lib/src/version.dart index 6884ff88..42244b22 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '2.0.1'; +const packageVersion = '2.0.2-dev.0'; diff --git a/lib/src/workflows/ensure_cache.workflow.dart b/lib/src/workflows/ensure_cache.workflow.dart index 9be9afd2..bb627c55 100644 --- a/lib/src/workflows/ensure_cache.workflow.dart +++ b/lib/src/workflows/ensure_cache.workflow.dart @@ -24,13 +24,11 @@ Future ensureCacheWorkflow( // Returns cache if already exists if (cacheVersion != null) { logger.trace('Version: $validVersion - already installed.'); + // Ensure the config link and symlink are updated + await ProjectService.updateLink(); return cacheVersion; } - // Ensure the config link and symlink are updated - // If there is an app - await ProjectService.updateLink(); - FvmLogger.info('Flutter "$validVersion" is not installed.'); // If its a custom version do not proceed on install process @@ -51,6 +49,8 @@ Future ensureCacheWorkflow( if (cacheVersion == null) { throw FvmInternalError('Could not cache version $validVersion'); } + // Ensure the config link and symlink are updated + await ProjectService.updateLink(); return cacheVersion; } else { // Exit if don't want to install diff --git a/pubspec.yaml b/pubspec.yaml index 74bc4716..244e1ac9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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.0.1 +version: 2.0.2-dev.0 homepage: https://github.com/leoafarias/fvm environment: