Skip to content

Commit

Permalink
deno 2.1.1
Browse files Browse the repository at this point in the history
Co-authored-by: Ruoyu Zhong <[email protected]>
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 and ZhongRuoyu committed Nov 21, 2024
1 parent 6fb5dcc commit 354a369
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 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.1.0/deno_src.tar.gz"
sha256 "2318042f2385c96e83cf365626d3fd19fcb1a6af488527c0820370490f94a9af"
url "https://github.com/denoland/deno/releases/download/v2.1.1/deno_src.tar.gz"
sha256 "a2c7a33f46fcfd80447a0ab5fc164be746a9218ef4c6e2ae1c641b8ecbcab2a4"
license "MIT"
head "https://github.com/denoland/deno.git", branch: "main"

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

depends_on "cmake" => :build
depends_on "llvm@18" => :build
depends_on "llvm" => :build
depends_on "ninja" => :build
depends_on "protobuf" => :build
depends_on "rust" => :build
Expand All @@ -40,22 +40,22 @@ class Deno < Formula
# TODO: Remove this and `v8` resource when https://github.com/denoland/rusty_v8/issues/1065 is resolved
# VERSION=#{version} && curl -s https://raw.githubusercontent.com/denoland/deno/v$VERSION/Cargo.lock | grep -C 1 'name = "v8"'
resource "rusty_v8" do
url "https://static.crates.io/crates/v8/v8-0.106.0.crate"
sha256 "a381badc47c6f15acb5fe0b5b40234162349ed9d4e4fd7c83a7f5547c0fc69c5"
url "https://static.crates.io/crates/v8/v8-130.0.1.crate"
sha256 "c23b5c2caff00209b03a716609b275acae94b02dd3b63c4648e7232a84a8402f"
end

# Find the v8 version from the last commit message at:
# https://github.com/denoland/rusty_v8/commits/v#{rusty_v8_version}/v8
# Then, use the corresponding tag found in https://github.com/denoland/v8/tags
resource "v8" do
url "https://github.com/denoland/v8/archive/refs/tags/12.9.202.13-denoland-245ce17ed8483e6bc3de.tar.gz"
sha256 "63cd3d4a42cac18a7475165f8c623cfdae8782d0fedea9aa030f983e987c8309"
url "https://github.com/denoland/v8/archive/refs/tags/13.0.245.12-denoland-6a811c9772d847135876.tar.gz"
sha256 "d2de7fc75381d8d7c0cd8b2d59bb23d91f8719f5d5ad6b19b8288acd2aae8733"
end

# 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.318.0.tar.gz"
sha256 "c33b5c9ce2e5fccf8f6b3c9015bddef2949dcd2fc492e4d8ce6b3fadf93ec85f"
url "https://github.com/denoland/deno_core/archive/refs/tags/0.321.0.tar.gz"
sha256 "8b238d4e09c61d545e16298912bc035ff65e9308de83a1a1d1cbd48eadbb8639"
end

# The latest commit from `denoland/icu`, go to https://github.com/denoland/rusty_v8/tree/v#{rusty_v8_version}/third_party
Expand All @@ -68,11 +68,11 @@ class Deno < Formula
# V8_TAG=#{v8_resource_tag} && curl -s https://raw.githubusercontent.com/denoland/v8/$V8_TAG/DEPS | grep gn_version
resource "gn" do
url "https://gn.googlesource.com/gn.git",
revision: "54f5b539df8c4e460b18c62a11132d77b5601136"
revision: "20806f79c6b4ba295274e3a589d85db41a02fdaa"
end

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

def install

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

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew install --verbose --formula --build-bottle deno` failed on macOS Sequoia (15) on Apple Silicon!

Downloaded base64ct v1.6.0 Downloaded aead v0.5.2 Downloaded Inflector v0.11.4 Compiling proc-macro2 v1.0.86 Running `CARGO=/opt/homebrew/Cellar/rust/1.82.0/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.86 CARGO_PKG_AUTHORS='David Tolnay <[email protected]>:Alex Crichton <[email protected]>' CARGO_PKG_DESCRIPTION='A substitute implementation of the compiler'\''s `proc_macro` API to decouple token-based libraries from the procedural macro use case.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=proc-macro2 CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/dtolnay/proc-macro2' CARGO_PKG_RUST_VERSION=1.56 CARGO_PKG_VERSION=1.0.86 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=86 CARGO_PKG_VERSION_PRE='' DYLD_FALLBACK_LIBRARY_PATH='/private/tmp/deno-20241121-9249-t79euy/deno/target/release/deps:/private/tmp/deno-20241121-9249-t79euy/deno/.brew_home/lib:/usr/local/lib:/usr/lib' rustc --crate-name build_script_build --edition=2021 /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.86/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="proc-macro"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "nightly", "proc-macro", "span-locations"))' -C metadata=75e2c28659461431 -C extra-filename=-75e2c28659461431 --out-dir /private/tmp/deno-20241121-9249-t79euy/deno/target/release/build/proc-macro2-75e2c28659461431 -C strip=debuginfo -L dependency=/private/tmp/deno-20241121-9249-t79euy/deno/target/release/deps --cap-lints warn -C 'link-args=-fuse-ld=lld -weak_framework Metal -weak_framework MetalPerformanceShaders -weak_framework QuartzCore -weak_framework CoreGraphics' -D 'clippy::all' -D 'clippy::await_holding_refcell_ref' -D 'clippy::missing_safety_doc' -D 'clippy::undocumented_unsafe_blocks' --cfg tokio_unstable` error: linking with `cc` failed: exit status: 1 | = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/opt/homebrew/Cellar/rust/1.82.0/lib/rustlib/aarch64-apple-darwin/bin:/opt/homebrew/Cellar/rust/1.82.0/lib/rustlib/aarch64-apple-darwin/bin:/opt/homebrew/Cellar/rust/1.82.0/lib/rustlib/aarch64-apple-darwin/bin:/opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/cmake/bin:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/ninja/bin:/opt/homebrew/opt/protobuf/bin:/opt/homebrew/opt/rust/bin:/opt/homebrew/opt/sqlite/bin:/usr/bin:/bin:/usr/sbin:/sbin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/private/tmp/rustcFbNhra/symbols.o" "/private/tmp/deno-20241121-9249-t79euy/deno/target/release/build/proc-macro2-75e2c28659461431/build_script_build-75e2c28659461431.build_script_build.e7965c11b7efb5ce-cgu.0.rcgu.o" "/private/tmp/deno-20241121-9249-t79euy/deno/target/release/build/proc-macro2-75e2c28659461431/build_script_build-75e2c28659461431.build_script_build.e7965c11b7efb5ce-cgu.1.rcgu.o" "/private/tmp/deno-20241121-9249-t79euy/deno/target/release/build/proc-macro2-75e2c28659461431/build_script_build-75e2c28659461431.60e8x0rhb3iupnzno9fxbwi0m.rcgu.o" "/opt/homebrew/Cellar/rust/1.82.0/lib/rustlib/aarch64-apple-darwin/lib/libstd-97b1ea40a9ad2d6d.rlib" "/opt/homebrew/Cellar/rust/1.82.0/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-ac39fa4337e84181.rlib" "/opt/homebrew/Cellar/rust/1.82.0/lib/rustlib/aarch64-apple-darwin/lib/libobject-9794d1151cc72282.rlib" "/opt/homebrew/Cellar/rust/1.82.0/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-9eb070e6c9339978.rlib" "/opt/homebrew/Cellar/rust/1.82.0/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-2e554b798eed430e.rlib" "/opt/homebrew/Cellar/rust/1.82.0/lib/rustlib/aarch64-apple-darwin/lib/libgimli-4c8c1f4ed50628fc.rlib" "/
Expand Down

0 comments on commit 354a369

Please sign in to comment.