New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package manager support: homebrew #1014
Comments
We first tried working with Thank being said, we can build without importing |
If we're sticking with git2go, then we could just move to the latest version (with libgit 1.5.0) and we will be back to useful again! |
/cc @amirmalka Please take a look into this |
my 2 cents - Removing the Why did we use
The impact to our build process is huge with this library, both in time and tools dependencies needed to be installed on the build machine. One of the main reasons we use a go-git / git2go is to make minimal assumptions about the environment of the end user - not having git installed. However, we trade it for the headache of using these libraries - specifically git2go. It makes build process much "heavier", it is only relevant for a specific functionality of Kubescape. I assume that running the Given the above, in my opinion Kubescape should be changed as follows:
I believe that except for out-of-the-box Windows and Linux alpine distributions |
Hi! Just want to learn more about the latest situation of this issue. Looks like it's buildable now: Homebrew/homebrew-core#107812 (comment) Everything should be OK: Homebrew/homebrew-core#125509 So I'm wondering if this issue has already been resolved or not? Is there anything that I still need to do? |
@amirmalka and @matthyx can fill in the latest. I think it boils down to "we build kubescape with and without a C git library, and if we build it with, then we couldn't support Homebrew". @chenrui333 has done a bunch of work to get this up to date (thank you!). It would be great to document how it works now, and perhaps confirm if it's possible to support the version that builds with the better library? |
I wondered if a library update in homebrew meant we could now depend on/build with the C git library. If not, or not feasible, we can document the existing integration and close the issue. |
I don't think it's now feasible to enable git support in homebrew official repo. However, I noticed that the homebrew-tap one is actually supporting the git build. If user wants to have the kubescape with git enabled, they can use that homebrew-tap to have it. So maybe we can close this issue now. In addition, I have reopened the PR for the workflow that enables to auto bump the kubescape version: kubescape/homebrew-tap#7 Once this get merged, we can add a step for the main repo release workflow which will trigger this one to auto bump version, thus no human maintenance is needed. |
SGTM. Please make sure that we have documentation for (a) the publishing process (b) the distinction on which version you can install through which method. That could be as simple as a wiki page entry or a Google doc, and we'll get it onto the right place. We can then close this issue! |
Wiki is available now:
I will continue documenting other methods of installation and publishing process in the following days. |
@matthyx @amirmalka Could you please check you're happy with/understand the process here, and then we'll close the issue! |
@HollowMan6
|
Thank you @amirmalka !
|
Homebrew support was disabled last August due to a fixed git2go dependency, requiring an older version of libgit2 than is available in Homebrew.
(We tried to fix this, but they weren't keen on our approach, and it wasn't returned to after libgit2 1.5 came out.)
If #1001 lands, then we should be able to trivially fix the brew support.
The text was updated successfully, but these errors were encountered: