grafana / alloy

OpenTelemetry Collector distribution with programmable pipelines
https://grafana.com/oss/alloy
Apache License 2.0
1.43k stars 210 forks source link

1.5.0 can't be installed on MacOS (15.1; M-Chip) #2093

Closed iORichy closed 5 days ago

iORichy commented 5 days ago

What's wrong?

If you try to install Grafana Alloy via Homebrew on MacOS you will get an error while yarn run build. This happens for 1.5.0 as the version 1.4.3 has been installed without any issues.

This is what you get (see logs…)

I did try to run npx update-browserslist-db@latest even npx update-browserslist-db@latest --update-db but this does not work too…

One a side-note, it seems that versioning for Homebrew is not supported, so I can't install a previous version until this is fixed. So brew install grafana/grafana/alloy@1.4.3 does not work…

Steps to reproduce

  1. by a new Mac (just kidding, but I did run this on a fresh bought Mac mini M4… and some other Macs too…)
  2. Install HomeBrew
  3. follow your installation Guidelines:
  4. run brew tap grafana/grafana
  5. run brew install grafana/grafana/alloy -> there you go

System information

Mac OS 15.1

Software version

Grafana Alloy 1.5.0

Logs

➜  ~ brew tap grafana/grafana
➜  ~ brew install grafana/grafana/alloy
==> Fetching grafana/grafana/alloy
==> Downloading https://github.com/grafana/alloy/archive/refs/tags/v1.5.0.tar.gz
Already downloaded: /Users/SOMEUSER/Library/Caches/Homebrew/downloads/4bf992ce5c20569d3810b62b73e547fb1490d7f766881219f1cc870edb60915f--alloy-1.5.0.tar.gz
==> Installing alloy from grafana/grafana
==> yarn
==> yarn run build
Last 15 lines from /Users/SOMEUSER/Library/Logs/Homebrew/alloy/02.yarn:
$ react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
Failed to compile.

Unexpected end of JSON input

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/grafana/homebrew-grafana/issues
dehaansa commented 5 days ago

Looks to have been addressed https://github.com/grafana/homebrew-grafana/pull/106

iORichy commented 5 days ago

Thanks, I tried Today again and now it's working (again). Thanks for your quick investigation.