Skip to content

Commit

Permalink
Merge pull request #5 from kcl-lang/chore-bump-kcl-version-0.10.0-beta
Browse files Browse the repository at this point in the history
chore: bump kcl version to v0.10.0-beta
  • Loading branch information
Peefy authored Aug 16, 2024
2 parents 50bf606 + 9c93ede commit ac00cbc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion examples/hello_world/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion examples/hello_world/WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
10 changes: 5 additions & 5 deletions kcl/private/versions.bzl
Original file line number Diff line number Diff line change
@@ -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",
},
},
Expand Down
3 changes: 1 addition & 2 deletions kcl/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ac00cbc

Please sign in to comment.