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

fvm use stable hangs on input? #1

Open
borgejHNIKT opened this issue Jun 11, 2024 · 6 comments
Open

fvm use stable hangs on input? #1

borgejHNIKT opened this issue Jun 11, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@borgejHNIKT
Copy link

Tried using this action today, but the build step "fvm use stable" looks like its hanging on user input?
image

@socheatsok78
Copy link
Member

Hi @borgejHNIKT

Apologize for the mistake, since fvm use required interaction you won’t be able to do so while the workflow is running.

Instead you can use it like this:

echo yes | fvm use stable

This is missing for the README, so I’ll make sure to update it.

@noga-dev
Copy link

Hi @borgejHNIKT

Apologize for the mistake, since fvm use required interaction you won’t be able to do so while the workflow is running.

Instead you can use it like this:

echo yes | fvm use stable

This is missing for the README, so I’ll make sure to update it.

Doesn't fix it for me, issue persists

Isn't there a way to show output? Seems like it's stuck on some prompt.

@socheatsok78 socheatsok78 added the bug Something isn't working label Jun 22, 2024
@socheatsok78
Copy link
Member

socheatsok78 commented Jun 22, 2024

Instead of using fvm use, can you change to this instead?

- name: Setup Flutter SDK
  run: echo yes | fvm install stable --skip-pub-get

I'm not anywhere near my computer at the moment, but this is what I have been using for the test workflow.

See https://github.com/flutter-actions/setup-fvm/blob/main/.github/workflows/dart.yml

@kaal-dam
Copy link

kaal-dam commented Jun 27, 2024

@noga-dev not sure if you found the solution but the script hang because if you run fvm use it ask you if you need to install the needed version if it's not installed and then it ask you if you want to add .fvm/ to your .gitignore making it two prompt and echo yes technically only help answering the first one

the first prompt is skipped if you already made a fvm install before

the second prompt is skipped if it find .fvm/ in the .gitignore (had to put it at the end of the .gitignore file for it to be recognized)

@socheatsok78 not sure if you can do anything on your side regarding that issue code wise, it's likely more something to do with documentation

@noga-dev
Copy link

Sorry I forgot to mention that I removed this action from my workflow for now

@socheatsok78
Copy link
Member

socheatsok78 commented Jun 27, 2024

Thank you @kaal-dam for a detailed explanation.

Apologize for the inconvenience, work has been rough this week.

I will do more testing this weekend, to see what works and will keep it posted here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants