Skip to content

Commit

Permalink
Merge pull request #165569 from Homebrew/erlang@24-resource-sync
Browse files Browse the repository at this point in the history
erlang@24: ensure resource in sync
  • Loading branch information
chenrui333 authored Mar 9, 2024
2 parents 693d2dd + 1e8a861 commit 2e35ba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/e/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class ErlangAT24 < Formula
end

def install
odie "html resource needs to be updated" if version != resource("html").version

# Unset these so that building wx, kernel, compiler and
# other modules doesn't fail with an unintelligible error.
%w[LIBS FLAGS AFLAGS ZFLAGS].each { |k| ENV.delete("ERL_#{k}") }
Expand Down Expand Up @@ -84,8 +86,6 @@ def caveats
end

test do
assert_equal version, resource("html").version, "`html` resource needs updating!"

system "#{bin}/erl", "-noshell", "-eval", "crypto:start().", "-s", "init", "stop"
(testpath/"factorial").write <<~EOS
#!#{bin}/escript
Expand Down

0 comments on commit 2e35ba4

Please sign in to comment.