Error: Parameter 'commandLine' cannot be null or empty. on self-hosted runners
Description of the bug
I have observed this issue where on the self-hosted runner, my expo action fails even though I have provided the expo token etc.
To Reproduce
What steps did you perform which led to this issue?
- Create a self hosted linux runner
- Point your action to this runner
Expected behavior
Expo github action should successfully complete.
Actual behavior
Installing eas-cli (5.4.0) from cache or with yarn
::group::Validating authenticated account
Validating authenticated account
::endgroup::
Error: Parameter 'commandLine' cannot be null or empty.
##[debug]Error: Parameter 'commandLine' cannot be null or empty.
##[debug] at /home/jakovglavina/actions-runner/_work/_actions/expo/expo-github-action/v8/build/setup/index.js:5805:19
##[debug] at Generator.next (<anonymous>)
##[debug] at /home/jakovglavina/actions-runner/_work/_actions/expo/expo-github-action/v8/build/setup/index.js:5784:71
##[debug] at new Promise (<anonymous>)
##[debug] at __webpack_modules__.1514.__awaiter (/home/jakovglavina/actions-runner/_work/_actions/expo/expo-github-action/v8/build/setup/index.js:5780:12)
##[debug] at exec (/home/jakovglavina/actions-runner/_work/_actions/expo/expo-github-action/v8/build/setup/index.js:5802:12)
##[debug] at authenticate (/home/jakovglavina/actions-runner/_work/_actions/expo/expo-github-action/v8/build/setup/index.js:72452:[28]
##[debug]Node Action run completed with exit code 1
##[debug]MSYS='winsymlinks:nativestrict'
##[debug]Finishing: 🏗 Setup EAS
Additional context
On Github-hosted runners this step passes sucessfully, but again fails on the following step:
Had the same issue on a Ubuntu 22.04 self-hosted runner. I was able to bypass it via npm install --global eas-cli on my self-hosted runner
Has anyone been able to fix this on a project using yarn 4?
This action is broken for me with this same error even after trying:
- omitting
eas-versionand pre-installingeas-cliglobally vianpm i -g eas-cli - including
eas-version: latestand ^ or not installing it globally first - quite literally any combination of attempts to preconfigure the runner with
eas-cliand@expo/cli
What package managers + versions are folks running where this is actually working for them?
Very much would appreciate any guidance here; this feels so broken and opaque that I'm out of ideas attempting to debug.
I'm running on a self hosted runner too, and I'm seeing a similar issue.
I've narrowed this down to the following line (the actual "problem" is a little bit further down the callstack), but the tl;dr is that which returns an empty string here. So the command being passed to exec is empty, which results in the error string we're seeing. https://github.com/expo/expo-github-action/blob/main/src/expo.ts#L97
I've validated that the eas-cli package was installed to the correct _work/_tool subdirectory, but for whatever reason the process running the eas setup code isn't looking there. This is only happening on a new runner that I'm setting up with Ansible for the first time. I have another hand-configured runner that works just fine, so I'm working to bisect the difference between the machines. I'll report back if I figure out the specific issue so other folks who run into this can work around the problem.
I was facing this issue was well... it seemed to have to do specifically with the machines I had installed yarn v4 onto. The machines with yarn v1 from homebrew seemed to function fine.
The workaround of npm install --global eas-cli seemed to fix it for the machines on yarn v4
First, I changed the package manager to pnpm and the workflow ran successfully:
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-cache: false
expo-cache: false
eas-version: latest
packager: pnpm
token: ${{ secrets.EXPO_TOKEN }}
Then I switched the package manager back to yarn, and the problem also disappeared:
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-cache: false
expo-cache: false
eas-version: latest
packager: yarn
token: ${{ secrets.EXPO_TOKEN }}