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

Error: Command failed with ENOENT: /usr/local/bin/brew install make #247

Open
lczech opened this issue May 8, 2024 · 1 comment
Open
Labels
bug Something isn't working more-information-needed

Comments

@lczech
Copy link

lczech commented May 8, 2024

The following GitHub Actions workflow fails under os: macos-latest

uses: aminya/setup-cpp@v0.37.0
with:
  compiler: ${{ matrix.compiler }}
  cmake: true
  make: true

with the error Error: Command failed with ENOENT: /usr/local/bin/brew install make

In more detail:

Run aminya/setup-cpp@v0.37.0
  with:
    compiler: gcc
    cmake: true
    make: true
    timeout: 20
Installing cmake true
  Installing cmake 3.28.1 arm64 via direct downloading
  Download cmake 3.28.1
  Trying https://github.com/Kitware/CMake/releases/download/v3.28.1/cmake-3.28.1-macos-universal.tar.gz #1 at 3:37:19 PM
  Installing extraction dependencies
  Extracting /Users/runner/work/_temp/5fd0404b-e7a3-4250-988a-41452e78260e to /Users/runner/cmake
  /usr/bin/tar xz -C /Users/runner/cmake -f /Users/runner/work/_temp/5fd0404b-e7a3-4250-988a-41452e78260e
  Add /Users/runner/cmake/cmake-3.28.1-macos-universal/CMake.app/Contents/bin/ to PATH
took 5 seconds
Installing make true
  Installing make  via brew
  Error: Error: Command failed with ENOENT: /usr/local/bin/brew install make
  spawnSync /usr/local/bin/brew ENOENT
took 0 seconds
✅ cmake was installed successfully:
- The installation directory is /Users/runner/cmake/cmake-3.28.1-macos-universal
- The binary directory is /Users/runner/cmake/cmake-3.28.1-macos-universal/CMake.app/Contents/bin/
Error: make failed to install
setup-cpp finished

This could be an issue with npm, see here

Cheers and thanks in advance for any hints on how to solve this!
Lucas

Upvote & Fund

@aminya is using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

Thank you in advance for helping prioritize & fund our backlog!


Fund with Polar
lczech added a commit to lczech/genesis that referenced this issue May 8, 2024
@aminya aminya added the bug Something isn't working label May 15, 2024
@aminya
Copy link
Owner

aminya commented May 15, 2024

There's a check to determine if brew is installed. Not sure why this error is being triggered.

if (!hasBrew || which.sync("brew", { nothrow: true }) === null) {

await setupBrewPack("make", version)

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

No branches or pull requests

2 participants