diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index ef164c1..0b665e9 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -10,8 +10,8 @@ load("//kcl:repositories.bzl", "kcl_register_toolchains", "rules_kcl_dependencie rules_kcl_dependencies() kcl_register_toolchains( - name = "kcl_0_9_1", - kcl_version = "0.9.1", + name = "kcl_0_10_0_beta_1", + kcl_version = "0.10.0-beta.1", ) load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") diff --git a/examples/hello_world/MODULE.bazel b/examples/hello_world/MODULE.bazel index 3dff145..d5c26d9 100644 --- a/examples/hello_world/MODULE.bazel +++ b/examples/hello_world/MODULE.bazel @@ -9,7 +9,7 @@ bazel_dep(name = "org_kcl_lang_rules_kcl", version = "0.0.0") kcl = use_extension("@org_kcl_lang_rules_kcl//kcl:extensions.bzl", "kcl") kcl.toolchain( name = "kcl", - kcl_version = "0.9.1", + kcl_version = "0.10.0-beta.1", ) use_repo(kcl, "kcl_toolchains") diff --git a/examples/hello_world/WORKSPACE.bazel b/examples/hello_world/WORKSPACE.bazel index 723dfb6..695a3cd 100644 --- a/examples/hello_world/WORKSPACE.bazel +++ b/examples/hello_world/WORKSPACE.bazel @@ -25,5 +25,5 @@ rules_kcl_dependencies() kcl_register_toolchains( name = "kcl_0_9_1", - kcl_version = "0.9.1", + kcl_version = "0.10.0-beta.1", ) diff --git a/kcl/private/versions.bzl b/kcl/private/versions.bzl index eb0c01e..d5e3738 100644 --- a/kcl/private/versions.bzl +++ b/kcl/private/versions.bzl @@ -1,19 +1,19 @@ TOOL_VERSIONS = { - "0.9.1": { + "0.10.0-beta.1": { "kcl-amd64-darwin": { - "url": "https://github.com/kcl-lang/cli/releases/download/v0.9.1/kcl-v0.9.1-darwin-amd64.tar.gz", + "url": "https://github.com/kcl-lang/cli/releases/download/v0.10.0-beta.1/kcl-v0.10.0-beta.1-darwin-amd64.tar.gz", "sha256": "d58667b43eccf69a5ff19bbc7ca3224e2a04b5345dcccc198746371c719b7f1a", }, "kcl-arm64-darwin": { - "url": "https://github.com/kcl-lang/cli/releases/download/v0.9.1/kcl-v0.9.1-darwin-arm64.tar.gz", + "url": "https://github.com/kcl-lang/cli/releases/download/v0.10.0-beta.1/kcl-v0.10.0-beta.1-darwin-arm64.tar.gz", "sha256": "5a6fb38300cfee95a178795d876a62f4ec9e1fc6405306e49b736207e3d54571", }, "kcl-amd64-linux": { - "url": "https://github.com/kcl-lang/cli/releases/download/v0.9.1/kcl-v0.9.1-linux-amd64.tar.gz", + "url": "https://github.com/kcl-lang/cli/releases/download/v0.10.0-beta.1/kcl-v0.10.0-beta.1-linux-amd64.tar.gz", "sha256": "1e2bb6ea02165416dddd56c6d60f7df1da642b928a476e227ee7286e58257c57", }, "kcl-arm64-linux": { - "url": "https://github.com/kcl-lang/cli/releases/download/v0.9.1/kcl-v0.9.1-linux-amd64.tar.gz", + "url": "https://github.com/kcl-lang/cli/releases/download/v0.10.0-beta.1/kcl-v0.10.0-beta.1-linux-amd64.tar.gz", "sha256": "23e9ac56372ea6c84e614075ad7a348ba4901991136969e6970abcd9dd5e824b", }, }, diff --git a/kcl/repositories.bzl b/kcl/repositories.bzl index 763fab8..58d7911 100644 --- a/kcl/repositories.bzl +++ b/kcl/repositories.bzl @@ -46,7 +46,6 @@ def _kcl_repo_impl(repository_ctx): artifact = TOOL_VERSIONS[repository_ctx.attr.kcl_version]["kcl-{0}".format(repository_ctx.attr.platform)] repository_ctx.download_and_extract( url = artifact["url"], - sha256 = artifact["sha256"], ) build_content = """#Generated by kcl/repositories.bzl @@ -67,7 +66,7 @@ kcl_repositories = repository_rule( def kcl_register_toolchains(name, kcl_version, register = True, **kwargs): """Convenience macro for users which does typical setup. - - create a repository for each built-in platform like "kcl-v0.9.1-darwin-amd64.tar.gz" - + - create a repository for each built-in platform like "kcl-v0.10.0-beta.1-darwin-amd64.tar.gz" - this repository is lazily fetched when KCL is needed for that platform. - create a repository exposing toolchains for each platform like "kcl_platforms" - register a toolchain pointing at each platform