Skip to content

Commit

Permalink
deno 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewTestBot authored and carlocab committed Oct 18, 2024
1 parent 376641e commit 0299485
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Formula/d/deno.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Deno < Formula
desc "Secure runtime for JavaScript and TypeScript"
homepage "https://deno.com/"
url "https://github.com/denoland/deno/releases/download/v2.0.1/deno_src.tar.gz"
sha256 "a8aa0138024193a557fd66e8700e16174302a849c6b1c097c2c9af110de39643"
url "https://github.com/denoland/deno/releases/download/v2.0.2/deno_src.tar.gz"
sha256 "629bb801b8c98a6c04df56ebe3005aafa217c4cde712bc706f161035c2951572"
license "MIT"
head "https://github.com/denoland/deno.git", branch: "main"

Expand All @@ -16,7 +16,8 @@ class Deno < Formula
end

depends_on "cmake" => :build
depends_on "llvm@18" => :build
depends_on "lld" => :build # cargo will insist on using lld even if we tell gn not to use it.
depends_on "llvm" => :build
depends_on "ninja" => :build
depends_on "protobuf" => :build
depends_on "rust" => :build
Expand All @@ -42,6 +43,12 @@ class Deno < Formula
resource "rusty_v8" do
url "https://static.crates.io/crates/v8/v8-0.106.0.crate"
sha256 "a381badc47c6f15acb5fe0b5b40234162349ed9d4e4fd7c83a7f5547c0fc69c5"

# Fix build with LLVM 19
patch do
url "https://github.com/denoland/rusty_v8/commit/a076d039902a29ebcd8b7045386cb8b9405b42f1.patch?full_index=1"
sha256 "1f74b9ea27de912217cb95fecac195fb29df420b994a047feeeb33ca9771cd11"
end
end

# Find the v8 version from the last commit message at:
Expand All @@ -54,8 +61,8 @@ class Deno < Formula

# VERSION=#{version} && curl -s https://raw.githubusercontent.com/denoland/deno/v$VERSION/Cargo.lock | grep -C 1 'name = "deno_core"'
resource "deno_core" do
url "https://github.com/denoland/deno_core/archive/refs/tags/0.313.0.tar.gz"
sha256 "997ed4fb5496aaf4a337fad96db7e4199694594ac5283abacdc3649a25c5d2d3"
url "https://github.com/denoland/deno_core/archive/refs/tags/0.314.1.tar.gz"
sha256 "5d97f4ed346d4647dee30f2ad8b00766c60383bf9787d8ab0c6f73cc389e1d57"
end

# The latest commit from `denoland/icu`, go to https://github.com/denoland/rusty_v8/tree/v#{rusty_v8_version}/third_party
Expand All @@ -72,7 +79,7 @@ class Deno < Formula
end

def llvm
Formula["llvm@18"]
Formula["llvm"]
end

def install

Check failure on line 85 in Formula/d/deno.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle deno` failed on Linux!

::error::deno 2.0.2 did not build
Expand Down

0 comments on commit 0299485

Please sign in to comment.