Skip to content

Commit

Permalink
infer: fix build
Browse files Browse the repository at this point in the history
OPAM dependency resolution is a moving target despite opam.lock

Closes #17229.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ilovezfs committed Aug 25, 2017
1 parent a69e1ad commit c36bdd9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Formula/infer.rb
Expand Up @@ -23,6 +23,15 @@ class Infer < Formula
depends_on "pkg-config" => :build

def install
# Remove for > 0.12.0
# Fix conflicting version constraints:
# ppx_deriving -> cppo_ocamlbuild -> cppo >= 1.6.0
# ppx_deriving -> cppo_ocamlbuild -> jbuilder >= 1.0+beta10
inreplace "opam.lock" do |s|
s.gsub! /^cppo = 1\.4\.1$/, "cppo = 1.6.0"
s.gsub! /^jbuilder = 1\.0\+beta6$/, "jbuilder = 1.0+beta12"
end

if build.without?("clang") && build.without?("java")
odie "infer: --without-clang and --without-java are mutually exclusive"
end
Expand Down

0 comments on commit c36bdd9

Please sign in to comment.