coverallsapp / coverage-reporter

Self-contained, universal coverage uploader binary. Under development.
https://coveralls.io
MIT License
45 stars 14 forks source link

Unable to install coveralls version 0.3.6 on Mac(M1) with brew install coveralls #60

Closed tchiaspko closed 1 year ago

tchiaspko commented 1 year ago

What was wrong?

unable to install the latest coveralls universal binary on Mac M1 (Ventura 13.3.1)

Logs

 ✘  ~  brew install coveralls
==> Downloading https://formulae.brew.sh/api/formula.jws.json
#=#=#
==> Downloading https://formulae.brew.sh/api/cask.jws.json
#=#=#
==> Fetching dependencies for coverallsapp/coveralls/coveralls: crystal
==> Fetching crystal
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/23532c7ba1e32e92f4e49fc07c3a39d9e41828e5/Formula/crystal.rb
Already downloaded: /Users/tonychia/Library/Caches/Homebrew/downloads/4e44fd7ac6e590532046cd0d9a9050b220d874aa446ac4ea2d273b79c1b53ef8--crystal.rb
==> Downloading https://github.com/crystal-lang/shards/archive/v0.17.3.tar.gz
Already downloaded: /Users/tonychia/Library/Caches/Homebrew/downloads/7522929bc724bbfe37f2d642b9ffd3951fe7a51aac4d5032a50add7d23c8ee4d--shards-0.17.3.tar.gz
==> Downloading https://github.com/crystal-lang/crystal/releases/download/1.5.1/crystal-1.5.1-1-darwin-universal.tar.gz
Already downloaded: /Users/tonychia/Library/Caches/Homebrew/downloads/d5661c4aac76b71fff06d3891eeaaf54b2fbf9cf1555dfd2a6581b35d62efc0e--crystal-1.5.1-1-darwin-universal.tar.gz
==> Downloading https://github.com/crystal-lang/crystal-molinillo/archive/refs/tags/v0.2.0.tar.gz
Already downloaded: /Users/tonychia/Library/Caches/Homebrew/downloads/cd1c699bd8532b2cced1932bdb5c5486f38822d01296ffe0e2043f215fa5c41a--crystal-molinillo-0.2.0.tar.gz
==> Downloading https://github.com/crystal-lang/crystal/archive/1.8.1.tar.gz
Already downloaded: /Users/tonychia/Library/Caches/Homebrew/downloads/a6e3b0aed5ae03b7d5ef5cce3329d2cc8bb8931561d5e35a48d909bba88bd702--crystal-1.8.1.tar.gz
==> Fetching coverallsapp/coveralls/coveralls
==> Downloading https://github.com/coverallsapp/coverage-reporter/archive/refs/tags/v0.3.6.tar.gz
Already downloaded: /Users/tonychia/Library/Caches/Homebrew/downloads/315aed6b27eb47fe160cdb0d4aa18b0686ad0959d6364a9740675e542dd88e3a--coverage-reporter-0.3.6.tar.gz
==> Installing coveralls from coverallsapp/coveralls
==> Installing dependencies for coverallsapp/coveralls/coveralls: crystal
==> Installing coverallsapp/coveralls/coveralls dependency: crystal
==> make deps
==> make crystal release=true FLAGS=--no-debug CRYSTAL_CONFIG_LIBRARY_PATH=\$$ORIGIN/../../../../lib CRYSTAL_CONFIG_PATH=\$$ORIGIN/../share/crystal/src interpreter=true
 ==> make bin/shards release=true FLAGS=--no-debug CRYSTAL=/private/tmp/crystal-20230422-54986-mglxfu/crystal-1.7.2/bin/crystal SHARDS=false
Error: Empty installation
 ✘  ~  which coveralls
coveralls not found
tchiaspko commented 1 year ago

I finally got this to work by installing the crystal package first and making sure that package installs successfully before installing coveralls.

The two commands are

brew install crystal brew install coveralls

mrexox commented 1 year ago

Yes, we know about this issue, and your workaround is actually a fix. I guess there might be an issue with crystal installation, so that it hangs. Please, write back if you face such an issue when upgrading/reinstalling

tchiaspko commented 1 year ago

Upgrading from 0.3.6 to 0.3.7 was fine. Also I have tried to install "brew install coveralls" from scratch without crystal and "brew install coveralls" with existing crystal and it seems to be fine now.