codeclimate / test-reporter

Code Climate Test Reporter
MIT License
154 stars 76 forks source link

Getting "cannot execute binary file: Exec format error" #494

Closed kylemh closed 2 years ago

kylemh commented 2 years ago

Trying to start using Chrome instead of Electron for Cypress so I swapped images (https://github.com/OperationCode/front-end/pull/1620)

I'm using cypress/browsers:node14.17.6-chrome100-ff98 whose base image is cypress/base:node14.17.6 whose base image is buster-slim which uses Debian. So, I swapped from the linux release to the darwin release.

Now, when I call ./cc_test_reporter format-coverage -t lcov -o coverage/codeclimate.json coverage/lcov.info I get: /bin/bash: ./cc_test_reporter: cannot execute binary file: Exec format error

kylemh commented 2 years ago

My initial problem was getting a Error: exec: "git": executable file not found in $PATH error during the format step; however, I realized that the Cypress image I used didn't have git installed 🙃

I'll close this. This still seems like an issue, but not one I could easily provide a reproduction for.