Skip to content
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

goresym 2.6.3 (new formula) #155716

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions Formula/g/goresym.rb
@@ -0,0 +1,19 @@
class Goresym < Formula
desc "Go symbol recovery tool"
homepage "https://github.com/mandiant/GoReSym"
url "https://github.com/mandiant/GoReSym/archive/refs/tags/v2.6.3.tar.gz"
sha256 "2f5409cb875e053ad0866b97152d6a6353c05d84db4959021cb88ec2a1e74c1b"
license "MIT"
head "https://github.com/mandiant/GoReSym.git", branch: "master"

depends_on "go" => :build

def install
system "go", "build", *std_go_args(ldflags: "-s -w")
end

test do
json_output = JSON.parse(shell_output("#{bin}/goresym '#{bin}/goresym'"))
assert_equal json_output["BuildInfo"]["Main"]["Path"], "github.com/mandiant/GoReSym"
end
chenrui333 marked this conversation as resolved.
Show resolved Hide resolved
end