Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: mirror latest swc release #6

Merged
merged 1 commit into from
Dec 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ load("//swc:repositories.bzl", "swc_register_toolchains")

swc_register_toolchains(
name = "swc",
swc_version = "v1.2.118",
swc_version = "v1.2.119",
)

load("@rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains")
Expand Down
2 changes: 1 addition & 1 deletion swc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ write_file(
nodejs_binary(
name = "cli",
data = [
"@npm__swc_core-1.2.117",
"@npm__swc_core-1.2.119",
"@swc_cli//@swc/cli",
],
entry_point = "main.js",
Expand Down
17 changes: 0 additions & 17 deletions swc/private/swc.pr2983.patch

This file was deleted.

14 changes: 14 additions & 0 deletions swc/private/versions.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
"Mirror of release info"

TOOL_VERSIONS = {
"v1.2.119": {
"android-arm64": "sha384-whzMbD0maV04vzMdOVfPQNDhpe3gWy9Tyg+SsXbzgA5oZDoqTjTM3e2Y5MeKWnz3",
"darwin-arm64": "sha384-2E4E13tCxfatne30Ss2FY+o0T8ebMV4gO999oqWPbehFxcaQI/6+D304xGZPF8/x",
"darwin-x64": "sha384-dRgiVlmtWKCuUXqWHwKcdlsgekcHcaLRmOH/3+ui5QYYm1oknT0ViEbUbT/jE4kI",
"freebsd-x64": "sha384-+LsX72klWDgPfAW9+p3/lVfyDr4ivVFerkwoo7961+gUMvsHH0gApMh6PwTabIh8",
"linux-arm-gnueabihf": "sha384-eFt6xaMd6JRHDAKuN4PwFaHj9Date7WL5cigF+1nHIbmSH56DfgM56yg3m00uv+b",
"linux-arm64-gnu": "sha384-RDISAN+TS/OsweAKc4R6wtqdBWQFIPBv6KJw3g9ticFJADw2fRBt6bg8TTurZ1HY",
"linux-arm64-musl": "sha384-IIU9oJIoAVUOtuVwggpP3XrUYPrLyYc7D+2J55dsP/1jHgiI2XIj60Jf6TT0enz8",
"linux-x64-gnu": "sha384-dFLjfJjECHwbRaTIGwp2VDyqdMJlXHKV1ojZDosoZbiZIT7+iL+JkeTpVmxhA+1p",
"linux-x64-musl": "sha384-Ei9md7Se0oPt7xn8g3xzG49eNEoxT75ZxtlZr7l0s1H/+tQmof5i0b5sZMAgbmSP",
"win32-arm64-msvc": "sha384-MKI6v8kQBYkbJueLHFSNzw63Y3OhWYGk8mhBt8GyNyiF7MD/zGqc+2nqoaPs+qRX",
"win32-ia32-msvc": "sha384-iKlIpH288Prm/0wjuzqxDtPqB69ZHQH2STchgYkOllT3u/l8V3eySobMY97FW0UD",
"win32-x64-msvc": "sha384-vE5+WiB20MS3Z2+wpFHyklIEX+KgQR4+5yleDBFVlil3IMqmUv/3s/peB5ckgte1",
},
"v1.2.118": {
"android-arm64": "sha384-hBW2Bn8IQteZZPIKdQpoj4SabxVqlWTr9dibeGzuSZNZFcYEKNaV5c5/A//4QZ/9",
"darwin-arm64": "sha384-cQPsBFlKjT8GRJMnFPEdw8Y6jiFIHpGGWD8wMQGU39skIA7D4fOiVod3kJFLjbH+",
Expand Down
7 changes: 2 additions & 5 deletions swc/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,9 @@ def swc_register_toolchains(name, **kwargs):
)

npm_import(
integrity = "sha512-bR1YGSyKbwguJxyZ3i3Au6+u8eP3SWhikGVWtCTE9sbfjSXuFKABaJiETg52IV3lU/WF6S97bGFdi+4SpyJnLw==",
integrity = "sha512-hNelzQ5ShAaaf2SHy4oZQ0dB8VCI4AaVchWEe5bZtirW3sY0gOqVL5V7x0b5Zzo0FyjlMnGIbX1k5IuX5uyn8A==",
package = "@swc/core",
patches = [
"@aspect_rules_swc//swc/private:swc.pr2983.patch",
],
version = "1.2.117",
version = "1.2.119",
deps = [
"@npm__napi-rs_triples-1.1.0",
"@npm__node-rs_helper-1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion swc/tests/versions_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ load("//swc/private:versions.bzl", "TOOL_VERSIONS")

def _smoke_test_impl(ctx):
env = unittest.begin(ctx)
asserts.equals(env, "v1.2.118", TOOL_VERSIONS.keys()[0])
asserts.equals(env, "v1.2.119", TOOL_VERSIONS.keys()[0])
return unittest.end(env)

# The unittest library requires that we export the test cases as named test rules,
Expand Down