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

Dart not found #2

Open
brim-borium opened this issue Oct 18, 2024 · 0 comments
Open

Dart not found #2

brim-borium opened this issue Oct 18, 2024 · 0 comments

Comments

@brim-borium
Copy link

Hi I am currently encountering an issue when trying to install mason_cli package using fvm.

I had to add the pub-cache path as well in order to find the mason_cli, but now it seems that it can't find dart that is used inside the cli tool (so from mason, when mason get is called).

So i was wondering if the correct paths are provided when setting up fvm during the action for pub-cache and dart?

part of my github workflow

- name: 📚 Git Checkout
              uses: actions/checkout@v4

            - name: 🐦 Setup Flutter Version Management CLI
              uses: flutter-actions/setup-fvm@v1
      
            - name: 🐦 Install Flutter SDK
              run: echo yes | fvm use ${{ matrix.flutter-version }}
      
            - name: 🐦 Print Flutter SDK version
              run: |
                fvm flutter --version

            - name: Add pub cache to PATH
              run: |
                  echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH <-- this I already added and I was able to run mason after that.

            - name: 🧱 Mason make
              run: |
                fvm dart pub global activate mason_cli
                mason get
                mason make my_template

And the error I get

...
Installed executable mason.
Activated mason_cli 0.1.0-dev.57.
/home/runner/.pub-cache/bin/mason: 8: dart: not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant