codacy / codacy-coverage-reporter

Multi-language coverage reporter for Codacy
https://www.codacy.com
Other
134 stars 94 forks source link

[CY-3399] codacy-coverage-reporter is crashing on macOS Big Sur #276

Closed hyde1 closed 3 years ago

hyde1 commented 3 years ago

Expected Behavior

Please describe the expected behavior of the issue, starting from the first action.

  1. Launch the last version of the reporter with bash <(curl -Ls https://coverage.codacy.com/get.sh) --help
  2. It should display the help

Actual Behavior

  1. Launch the last version of the reporter with bash <(curl -Ls https://coverage.codacy.com/get.sh) --help
  2. Have the following output
     ______          __
    / ____/___  ____/ /___ ________  __
   / /   / __ \/ __  / __ `/ ___/ / / /
  / /___/ /_/ / /_/ / /_/ / /__/ /_/ /
  \____/\____/\__,_/\__,_/\___/\__, /
                              /____/

  Codacy Coverage Reporter

 --> Download the codacy reporter codacy-coverage-reporter-darwin... (latest)
#=#=-  #       #                                                                                                                                                                                                                                               #=O=#     #        #                                                                                                                                                                                                                                           -#O=- #      #          #                                                                                                           ######################################################################################################################################################################################################################################################### 100.0%
######################################################################################################################################################################################################################################################### 100.0%
/dev/fd/11: line 125: 99512 Killed: 9               /Users/hyde/Library/Caches/Codacy/codacy-coverage-reporter --help

 --> Failed!

Reproducible Test Case

Running the last version of the native binary directly also fails (version 11.4.1):

$ ./codacy-coverage-reporter --help                                                                                                                                                                                                                               
zsh: killed     ./codacy-coverage-reporter --help
github-actions[bot] commented 3 years ago

Internal ticket created : CY-3399

lolgab commented 3 years ago

Hi @hyde1, Thanks for your bug report. Currently, graalvm native-image doesn't work on Big Sur. The issue is solved upstream but a new version with the fix has not been released yet. As a workaround you could try to use the java binary.

lolgab commented 3 years ago

This is fixed in the latest version. Please delete the cache if you want to update (~/.cache/codacy on linux and ~/Library/Caches/Codacy on Mac OS X)