Skip to content

Cannot setup Flutter with melos and FVM #2634

Closed Answered by dam-ease
alberto-sf asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @alberto-sf,
From the logs, ln: /Users/builder/clone/.fvm/flutter_sdk: No such file or directory. I see it's not fetching the directory. Can you try to echo $FLUTTER_ROOT, you should see the output using the snippet below:

- name: flutter sybmolic link check
script: |
echo "FLUTTER_ROOT is set to: $FLUTTER_ROOT"
echo "CM_BUILD_DIR is set to: $CM_BUILD_DIR"
if [ -d "$CM_BUILD_DIR/.fvm/" ]; then
echo "$CM_BUILD_DIR/.fvm/ exists."
else
echo "$CM_BUILD_DIR/.fvm/ does not exist, creating it now."
mkdir -p $CM_BUILD_DIR/.fvm/
fi

ln -s $FLUTTER_ROOT $CM_BUILD_DIR/.fvm/flutter_sdk
echo "Symbolic link created."
echo "Verifying symbolic link..."
ls -l $CM_BUILD_DIR/.fvm/flutter_sdk
$CM_BUILD…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@alberto-sf
Comment options

Answer selected by alberto-sf
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants