I’m writing a Homebrew formula for the CoreDNS project, and for some reason Homebrew is incorrectly inferring that the latest version of the project is 64 even though there’s only one version of the project (1.3.1). I’m a bit stumped as to why that’s happening.
For reference, here is the troublesome formula PR:
And here is the GitHub repo that the formula builds from:
The formula builds successfully in a local context but with a warning:
Warning: coredns 64 is available and more recent than version 1.3.1.. When I try to run
brew test coredns I get
Error: Testing requires the latest version of coredns. And when I run
brew upgrade coredns (which shouldn’t work given that there’s only one version) it attempts to install version 64.
I just can’t seem to figure out why Homebrew is inferring this version. Any help would be greatly appreciated!
Here’s the formula for reference:
class Coredns < Formula desc "Plugin-driven DNS and service discovery" homepage "https://coredns.io" url "https://github.com/coredns/coredns.git", :tag => "v1.3.1", :revision => "6b56a9c92130d50cee9bd92aaee500dbccff395f" head "https://github.com/coredns/coredns.git" depends_on "dep" => :build depends_on "go" => :build def install ENV["GOPATH"] = buildpath dir = buildpath/"src/github.com/coredns/coredns" dir.install buildpath.children cd dir do system "make", "godeps", "all" bin.install "coredns" prefix.install_metafiles end end test do system bin/"coredns", "-dns.port=1053" end end