Skip to content

Commit

Permalink
Merge pull request #284 from leoafarias/fix/update_link_install
Browse files Browse the repository at this point in the history
Fixes update link
  • Loading branch information
leoafarias authored May 4, 2021
2 parents 3979947 + 4472011 commit 32b0e9c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
## 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)

## 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
Expand All @@ -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
Expand All @@ -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
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.

8 changes: 4 additions & 4 deletions lib/src/workflows/ensure_cache.workflow.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ Future<CacheVersion> 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
Expand All @@ -51,6 +49,8 @@ Future<CacheVersion> 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
Expand Down
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.0.1
version: 2.0.2-dev.0
homepage: https://github.com/leoafarias/fvm

environment:
Expand Down

0 comments on commit 32b0e9c

Please sign in to comment.