Skip to content

Instantly share code, notes, and snippets.

@rk295
Created September 6, 2018 06:00
Show Gist options
  • Save rk295/1c76fe180fb3938773a4cbeed6f0fd20 to your computer and use it in GitHub Desktop.
Save rk295/1c76fe180fb3938773a4cbeed6f0fd20 to your computer and use it in GitHub Desktop.
Jamal formula for brew
class Jamal < Formula
desc "YAML to JSON and JSON to YAML conversion tool"
homepage "https://github.com/quantumew/jamal"
url "https://github.com/quantumew/jamal/archive/v1.0.0.tar.gz"
version "1.0.0"
sha256 "959d6ced5182114efa28dd9ba0aa06157d7c32842cda7719c2f5ce5a464c4b9d"
revision 1
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/quantumew/jamal").install buildpath.children
cd "src/github.com/quantumew/jamal" do
system "go", "get"
system "go", "build", "-o", "#{bin}/jamal"
end
end
test do
system bin/"jamal", "--help"
end
end
@rk295
Copy link
Author

rk295 commented Sep 6, 2018

I wrote this, then tried to submit it to the master list but got this error:

% brew audit --new-formula jamal
jamal:
  * C: 15: col 7: Do not use `go get`. Please ask upstream to implement Go vendoring
  * GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars)
Error: 3 problems in 1 formula detected

The first one I could probably work with Andy to fix, the last one not so much. 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment