Skip to content

kubescape 2.0.164 #106523

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

Closed
wants to merge 2 commits into from
Closed

Conversation

amirmalka
Copy link
Contributor

@amirmalka amirmalka commented Jul 25, 2022

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

version bump to 2.0.164
fixed build process

@BrewTestBot BrewTestBot added the go Go use is a significant feature of the PR or issue label Jul 25, 2022
@dwertent dwertent mentioned this pull request Jul 25, 2022
Comment on lines +27 to +30
resource "libgit2" do
url "https://github.com/libgit2/libgit2/archive/refs/tags/v1.3.0.tar.gz"
sha256 "192eeff84596ff09efb6b01835a066f2df7cd7985e0991c79595688e6b36444e"
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use the formula

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem with the libgit2 formula is that I need specific version 1.3.0, which would work with git2go v33 (https://github.com/libgit2/git2go#which-go-version-to-use)
Can you advise what would be the best approach in this case?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating git2go, and by extension kubescape to work with a modern version of it's dependencies.

Copy link
Contributor Author

@amirmalka amirmalka Jul 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SMillerDev We are using the latest version of that go module - https://pkg.go.dev/github.com/libgit2/git2go/v33

There's an open issue for that upgrade for a few months (
libgit2/git2go#899)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like they were waiting for libgit2/libgit2#6278 to land. It has now, and is in a stable release.

ldflags = %W[
-s -w
-X github.com/armosec/kubescape/v2/core/cautils.BuildNumber=v#{version}
]

system "go", "build", *std_go_args(ldflags: ldflags)
system "make", "libgit2"
system "go", "build", *std_go_args(ldflags: ldflags), "-tags", "static"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be statically linking

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SMillerDev I do see other formulas in the homebrew-core repository which use static linking

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you point them out, because they should really be fixed not to do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume those would be sslscan, tanka, geos, proj, jsonnet-bundler

@amirmalka amirmalka requested a review from SMillerDev July 25, 2022 17:17
@SMillerDev SMillerDev removed their request for review July 29, 2022 09:03
@amirmalka amirmalka closed this Aug 11, 2022
@github-actions github-actions bot added the outdated PR was locked due to age label Sep 11, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
go Go use is a significant feature of the PR or issue outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants