将自定义水龙头连接到bintray中的现有瓶子上

通常情况下,你会遇到一些老版本的软件。 但是你仍然希望能够使用自制软件无缝安装。 在我的公司,我们被困在docker老版本,所以我创build了自己的水龙头老版本的公式。

class Docker191 < Formula desc "Pack, ship and run any application as a lightweight container" homepage "https://www.docker.com/" url "https://github.com/docker/docker.git", :tag => "v1.9.1", :revision => "a34a1d598c6096ed8b5ce5219e77d68e5cd85462" revision 1 head "https://github.com/docker/docker.git" bottle do cellar :any_skip_relocation root_url "https://homebrew.bintray.com/bottles" sha256 "fe02c921afd6863be441b85ae069e24b7c5b13e97615b47c994ea8064e082bf1" => :el_capitan sha256 "8a3137f5d6155491e9c4833d80ca819d8bf6d31f38595be713baed06f5283c92" => :yosemite sha256 "282f987005f81d9a82269827b66aa1044dfbd8645c23845d59e21aad93dc99e0" => :mavericks end option "without-completions", "Disable bash/zsh completions" depends_on "go" => :build conflicts_with "docker", :because => "Differing version of the same formula" def install ENV["AUTO_GOPATH"] = "1" ENV["DOCKER_CLIENTONLY"] = "1" system "hack/make.sh", "dynbinary" build_version = build.head? ? File.read("VERSION").chomp : version bin.install "bundles/#{build_version}/dynbinary/docker-#{build_version}" => "docker" if build.with? "completions" bash_completion.install "contrib/completion/bash/docker" fish_completion.install "contrib/completion/fish/docker.fish" zsh_completion.install "contrib/completion/zsh/_docker" end end test do system "#{bin}/docker", "--version" end end 

这一切都是从源头上build立起来的,但是我想知道是否有可能把这些已经build成并已经build成的瓶子,而不是从源头上build造起来。

我试图通过添加

root_url“ https://homebrew.bintray.com/bottles ”

但是因为我的公式名称是Docker191,而不是只是Docker,它试图从不存在的path拉

==>正在下载https://homebrew.bintray.com/bottles/docker191-1.9.1_1.el_capitan.bottle.tar.gz

代替

==>正在下载https://homebrew.bintray.com/bottles/docker-1.9.1_1.el_capitan.bottle.tar.gz

有没有办法来修复瓶子的名字? 我不能更改公式的名称到Docker,因为我需要多个版本可用。