Skip to content

Dart not found #2

@brim-borium

Description

@brim-borium

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions