Skip to content

Commit

Permalink
Assert that vendored repositories.bzl is up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Mar 28, 2022
1 parent d0490ee commit 95ad0f3
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
4.2.2
5.1.0
# The first line of this file is used by Bazelisk and Bazel to be sure
# the right version of Bazel is used to build and test this repo.
# This also defines which version is used on CI.
Expand Down
7 changes: 2 additions & 5 deletions docs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
load("@aspect_bazel_lib//lib:docs.bzl", "stardoc_with_diff_test", "update_docs")

stardoc_with_diff_test(
name = "swc",
bzl_library_target = "//swc:swc",
out_label = "//docs:swc.md",
)

update_docs(
name = "update",
docs_folder = "docs",
)
update_docs(name = "update")
12 changes: 6 additions & 6 deletions swc/dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ def rules_swc_dependencies():
maybe(
http_archive,
name = "aspect_bazel_lib",
sha256 = "e834c368f36cb336b5b42cd1dd9cd4b6bafa0ad3ed7f92f54a47e5ab436e4f59",
strip_prefix = "bazel-lib-0.3.0",
url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v0.3.0.tar.gz",
sha256 = "4d709266337d8e147fb647d6dfa3bbcfb6983ab79bece9cf661e3dc13ae3c3bc",
strip_prefix = "bazel-lib-0.6.1",
url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v0.6.1.tar.gz",
)

maybe(
http_archive,
name = "aspect_rules_js",
sha256 = "dd78b4911b7c2e6c6e919b85cd31572cc15e5baa62b9e7354d8a1065c67136e3",
strip_prefix = "rules_js-0.3.1",
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.3.1.tar.gz",
sha256 = "f4d5cf4d2a1395a67c965e6a5c3377d7a135efe147c616cb635edff00517e1de",
strip_prefix = "rules_js-bcbb2f29b13d320b32ac68978f52417a7c0981ab",
url = "https://github.com/aspect-build/rules_js/archive/bcbb2f29b13d320b32ac68978f52417a7c0981ab.tar.gz",
)
8 changes: 8 additions & 0 deletions swc/private/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")

write_source_files(
name = "write_cli_repos",
files = {
"cli_repositories.bzl": "@swc_cli//:repositories.bzl",
},
)

bzl_library(
name = "toolchains_repo",
Expand Down
36 changes: 3 additions & 33 deletions swc/private/cli_repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
"""repositories for @swc/cli package.
Until we have https://github.com/aspect-build/rules_js/issues/10
this file is manually generated from the translate_package_lock
in ../repositories.bzl
To update the content of this file, run
% bazel sync --only=swc_cli
% cp $(bazel info output_base)/external/swc_cli/repositories.bzl swc/private/cli_repositories.bzl
Then restore this comment at the top.
"""npm repositories for rules_swc
@generated by translate_package_lock.bzl from
@aspect_rules_swc//swc/private:package-lock.json
"""

# @generated by package_lock.bzl from {package_lock}

load("@aspect_rules_js//js:npm_import.bzl", "npm_import")

def npm_repositories():
"Define external repositories to fetch each tarball individually from npm on-demand."

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm__nodelib_fs.scandir-2.1.5",
integrity = "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
Expand All @@ -25,7 +16,6 @@ def npm_repositories():
deps = ["@npm__nodelib_fs.stat-2.0.5", "@npm_run-parallel-1.2.0"],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm__nodelib_fs.stat-2.0.5",
integrity = "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
Expand All @@ -34,7 +24,6 @@ def npm_repositories():
deps = [],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm__nodelib_fs.walk-1.2.8",
integrity = "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
Expand All @@ -43,7 +32,6 @@ def npm_repositories():
deps = ["@npm__nodelib_fs.scandir-2.1.5", "@npm_fastq-1.13.0"],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm__swc_cli-0.1.52",
integrity = "sha512-LAWnsTG6BNGinyPN5U0wPKA6OSMX+sl4VUzzo1dpS33V4osLQOXxLdITQnQbfI8zS74ekERvIwa8vvXKXCoc+A==",
Expand All @@ -52,7 +40,6 @@ def npm_repositories():
deps = ["@npm_commander-7.2.0", "@npm_fast-glob-3.2.7", "@npm_slash-3.0.0", "@npm_source-map-0.7.3"],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_braces-3.0.2",
integrity = "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
Expand All @@ -61,7 +48,6 @@ def npm_repositories():
deps = ["@npm_fill-range-7.0.1"],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_commander-7.2.0",
integrity = "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==",
Expand All @@ -70,7 +56,6 @@ def npm_repositories():
deps = [],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_fast-glob-3.2.7",
integrity = "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==",
Expand All @@ -79,7 +64,6 @@ def npm_repositories():
deps = ["@npm__nodelib_fs.stat-2.0.5", "@npm__nodelib_fs.walk-1.2.8", "@npm_glob-parent-5.1.2", "@npm_merge2-1.4.1", "@npm_micromatch-4.0.4"],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_fastq-1.13.0",
integrity = "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==",
Expand All @@ -88,7 +72,6 @@ def npm_repositories():
deps = ["@npm_reusify-1.0.4"],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_fill-range-7.0.1",
integrity = "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
Expand All @@ -97,7 +80,6 @@ def npm_repositories():
deps = ["@npm_to-regex-range-5.0.1"],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_glob-parent-5.1.2",
integrity = "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
Expand All @@ -106,7 +88,6 @@ def npm_repositories():
deps = ["@npm_is-glob-4.0.3"],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_is-extglob-2.1.1",
integrity = "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
Expand All @@ -115,7 +96,6 @@ def npm_repositories():
deps = [],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_is-glob-4.0.3",
integrity = "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
Expand All @@ -124,7 +104,6 @@ def npm_repositories():
deps = ["@npm_is-extglob-2.1.1"],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_is-number-7.0.0",
integrity = "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
Expand All @@ -133,7 +112,6 @@ def npm_repositories():
deps = [],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_merge2-1.4.1",
integrity = "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
Expand All @@ -142,7 +120,6 @@ def npm_repositories():
deps = [],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_micromatch-4.0.4",
integrity = "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==",
Expand All @@ -151,7 +128,6 @@ def npm_repositories():
deps = ["@npm_braces-3.0.2", "@npm_picomatch-2.3.0"],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_picomatch-2.3.0",
integrity = "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==",
Expand All @@ -160,7 +136,6 @@ def npm_repositories():
deps = [],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_queue-microtask-1.2.3",
integrity = "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
Expand All @@ -169,7 +144,6 @@ def npm_repositories():
deps = [],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_reusify-1.0.4",
integrity = "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
Expand All @@ -178,7 +152,6 @@ def npm_repositories():
deps = [],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_run-parallel-1.2.0",
integrity = "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
Expand All @@ -187,7 +160,6 @@ def npm_repositories():
deps = ["@npm_queue-microtask-1.2.3"],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_slash-3.0.0",
integrity = "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
Expand All @@ -196,7 +168,6 @@ def npm_repositories():
deps = [],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_source-map-0.7.3",
integrity = "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==",
Expand All @@ -205,7 +176,6 @@ def npm_repositories():
deps = [],
)

# @generated from [package-lock.json snippet here]
npm_import(
name = "npm_to-regex-range-5.0.1",
integrity = "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
Expand Down
1 change: 0 additions & 1 deletion swc/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def swc_register_toolchains(name, register = True, **kwargs):
version = "1.1.0",
)

# See comments at the top of /swc/private/cli_repositories.bzl
# This is used to generate code in this repo, but otherwise unused
# at runtime or by users directly.
translate_package_lock(
Expand Down

0 comments on commit 95ad0f3

Please sign in to comment.