diff --git a/WORKSPACE b/WORKSPACE index ddeefbb..509e831 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -12,11 +12,11 @@ load("//swc:dependencies.bzl", "rules_swc_dependencies") # Fetch our "runtime" dependencies which users need as well rules_swc_dependencies() -load("//swc:repositories.bzl", "LATEST_VERSION", "swc_register_toolchains") +load("//swc:repositories.bzl", "LATEST_SWC_VERSION", "swc_register_toolchains") swc_register_toolchains( name = "swc", - swc_version = LATEST_VERSION, + swc_version = LATEST_SWC_VERSION, ) load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "register_jq_toolchains") diff --git a/e2e/smoke/WORKSPACE.bazel b/e2e/smoke/WORKSPACE.bazel index c0fbcd5..3c16830 100644 --- a/e2e/smoke/WORKSPACE.bazel +++ b/e2e/smoke/WORKSPACE.bazel @@ -23,9 +23,9 @@ rules_swc_dependencies() # https://github.com/swc-project/swc/releases # If you'd rather compile it from source, you can use rules_rust, fetch the project, # then register the toolchain yourself. (Note, this is not yet documented) -load("@aspect_rules_swc//swc:repositories.bzl", "LATEST_VERSION", "swc_register_toolchains") +load("@aspect_rules_swc//swc:repositories.bzl", "LATEST_SWC_VERSION", "swc_register_toolchains") swc_register_toolchains( name = "swc", - swc_version = LATEST_VERSION, + swc_version = LATEST_SWC_VERSION, ) diff --git a/swc/repositories.bzl b/swc/repositories.bzl index ca3e808..a244f93 100644 --- a/swc/repositories.bzl +++ b/swc/repositories.bzl @@ -53,7 +53,10 @@ load("//swc/private:toolchains_repo.bzl", "PLATFORMS", "toolchains_repo") load("//swc/private:versions.bzl", "TOOL_VERSIONS") # Expose as Public API -LATEST_VERSION = TOOL_VERSIONS.keys()[0] +LATEST_SWC_VERSION = TOOL_VERSIONS.keys()[0] + +# TODO(2.0): remove this alias +LATEST_VERSION = LATEST_SWC_VERSION _DOC = "Fetch external dependencies needed to run the SWC cli" _ATTRS = {