GitGuardian / ggshield

Find and fix 400+ types of hardcoded secrets and 70+ types of infrastructure-as-code misconfigurations.
https://gitguardian.com
MIT License
1.62k stars 143 forks source link

Brew installation is very slow #785

Closed niosega closed 10 months ago

niosega commented 10 months ago

Environment

Describe the bug

When installing ggshield using brew, the process is very slow both on linux and macos. It can take up to 20 minutes on some machine. The average is around 4 to 5 minutes.

Steps to reproduce:

  1. Remove package if already installed
  2. Run command brew install gitguardian/tap/ggshield

Of course, I am ready to help you diagnose / improve the process if needed !

agateau-gg commented 10 months ago

This is because brew rebuilds all dependencies, and that now includes the cryptography package, which takes a long time to build.

I don't think there is a way around this when using Homebrew, though I would be happy to be proven wrong.

Using pipx to install and update ggshield is faster because pipx uses pre-compiled wheels for all ggshield dependencies.

agateau-gg commented 10 months ago

Closing this as we can't do much for now.