Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add an --autoInstall option to fvm #538

Closed
ronw98 opened this issue Jun 22, 2023 · 2 comments
Closed

[Feature Request] Add an --autoInstall option to fvm #538

ronw98 opened this issue Jun 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ronw98
Copy link

ronw98 commented Jun 22, 2023

First of, fvm is a great tool and really saves a lot of time when dealing with multiple projects or a single project with a long git history and many flutter version changes so thank you for that.

I'm running a CI/CD pipeline on my projects and use fvm to choose the right version of flutter for each project.
But when I change the version of flutter in the fvm_config.json file in my project the pipeline gets stuck on fvm flutter pub get. Why? Because fvm asks for a confirmation to install the new version of flutter put in the config file.

My pipeline runs on a shell gitlab runner so I can go onto the machine and manually install the required version of flutter before running the pipeline but doing that is not ideal.

A great add to fvm would be a --autoInstall option that skips user confirmation when requiring a version of flutter not yet installed.

@ronw98 ronw98 added the enhancement New feature or request label Jun 22, 2023
@TabooSun
Copy link

I run this in CI environment:

fvm install
fvm use

As mentioned in the documentation if you run fvm install -h

fvm install -h
Installs Flutter SDK Version

Usage: fvm install {version}, if no {version} is provided will install version configured in project.
-h, --help          Print this usage information.
-s, --skip-setup    Skips Flutter setup after install

Run "fvm help" to see global options.

@ronw98
Copy link
Author

ronw98 commented Jun 22, 2023

Thank you very much @TabooSun I don't know how I did not think of that but it definitely solves my problem!

@ronw98 ronw98 closed this as completed Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants