You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have used flutter. Please install correctly, run pub cache repair. Close the terminal and try again.
Run fvm doctor if possible and add the output to the issue.
Describe the bug
I'm trying to create a GitHub action that tries to upgrade to the latest Flutter stable (fvm use stable --pin) and create a PR if there is a new version.
To Reproduce
name: Update Flutter Version in FVMon:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'# Weeklyenv:
CI: truejobs:
update-flutter-version:
runs-on: ubuntu-lateststeps:
- name: Check out repositoryuses: actions/checkout@v4
- name: Set up Dartuses: dart-lang/setup-dart@v1
- name: Install FVMrun: dart pub global activate fvm
- name: Run FVM use stable --pinrun: fvm use stable --pin
- name: Create Pull Requestuses: peter-evans/create-pull-request@v3with:
commit-message: "Update Flutter version to latest stable"title: "Update Flutter version to latest stable"body: "This PR updates the Flutter version to the latest stable release. Tip: close and reopen this PR to trigger the GitHub Action for PRs!"branch: "update-flutter-stable-${{ github.run_number }}"delete-branch: true
What happens though is that fvm asks "Would you like to install it now? (y/n)" even in the CI environment.
Expected behavior
I would like fvm to not require interaction when running in a CI environment and the "CI" environment variable is included in kCiEnvironmentVariables. If it installs or not installs Flutter by default is not important.
Logs
Run fvm use stable --pin --verbose
fvm use stable --pin --verbose
shell: /usr/bin/bash -e {0}
env:
CI: true
DART_HOME: /opt/hostedtoolcache/dart/3.4.4/x64
PUB_CACHE: /home/runner/.pub-cache
Argument information:
Top level options:
- verbose: true
Command: use
Command options:
- pin: true
Searching for project in /home/runner/work/bankid-demo-flutter-firebase/bankid-demo-flutter-firebase
Found project config in /home/runner/work/bankid-demo-flutter-firebase/bankid-demo-flutter-firebase
Pinning version 3.[2](https://github.com/activout/bankid-demo-flutter-firebase/actions/runs/10027622205/job/27713521073#step:6:2)2.3 from "stable" release channel...
Creating local mirror...
.
.
.
✓ Clone complete
Flutter SDK: SDK Version : 3.22.3 is not installed.
25l? Would you like to install it now? (y/n) › yes
Desktop (please complete the following information):
@twogood I believe this has been addressed in the latest version, as FVM detects if it is CI in order to use interactivity. I will close this issue, but please reopen it if that is not your experience.
Before creating a bug report please make check the following
pub cache repair
. Close the terminal and try again.fvm doctor
if possible and add the output to the issue.Describe the bug
I'm trying to create a GitHub action that tries to upgrade to the latest Flutter stable (
fvm use stable --pin
) and create a PR if there is a new version.To Reproduce
What happens though is that fvm asks "Would you like to install it now? (y/n)" even in the CI environment.
Expected behavior
I would like fvm to not require interaction when running in a CI environment and the "CI" environment variable is included in
kCiEnvironmentVariables
. If it installs or not installs Flutter by default is not important.Logs
Desktop (please complete the following information):
Additional context
Not sure if this is solved by #712 ?
fvm doctor output
The text was updated successfully, but these errors were encountered: