Skip to content

Commit

Permalink
Prepare to Push to BCR
Browse files Browse the repository at this point in the history
Last bit of housecleaning before attempting to push this version to the BCR. Primarily just updates examples/bzlmod/ to use clarodocs().

Updates the JS related Module deps to not be considered "dev" dependencies as they need to be available for downstream Modules depending on claro-lang.

Also fixes the stdlib/cache module so that it correctly builds.
  • Loading branch information
JasonSteving99 committed Apr 4, 2024
1 parent d114f70 commit 7fd8342
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module(
name = "claro-lang",
repo_name = "claro-lang",
version = "0.1.501",
version = "0.1.502",
)

bazel_dep(name = "aspect_bazel_lib", version = "2.0.1")
Expand Down
2 changes: 1 addition & 1 deletion examples/bzlmod/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module(name = "example-claro-module")

bazel_dep(name = "claro-lang", version = "0.1.501")
bazel_dep(name = "claro-lang", version = "0.1.502")

5 changes: 3 additions & 2 deletions src/java/com/claro/claro_build_rules_internal.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,9 @@ def bootstrapped_claro_module(name, module_api_file, srcs = ["@claro-lang//:empt

# In order to avoid a circular dep back into the local build of the compiler, this compilation unit must be built using
# the "bootstrapping compiler" based on a prior precompiled release of the compiler from github.
def bootstrapped_claro_module_internal(name, module_api_file, srcs = ["@claro-lang//:empty_claro_src"], deps = {}, resources = {}, exports = [], exported_custom_java_deps = [], debug = False, **kwargs):
native.exports_files([module_api_file])
def bootstrapped_claro_module_internal(name, module_api_file, srcs = ["@claro-lang//:empty_claro_src"], deps = {}, resources = {}, exports = [], exported_custom_java_deps = [], debug = False, export_module_api = True, **kwargs):
if export_module_api:
native.exports_files([module_api_file])
_claro_module_internal(
_invoke_claro_compiler_internal, name, module_api_file, srcs, deps, resources, exports, exported_custom_java_deps, optional_stdlib_deps = [], debug = debug, add_stdlib_deps = False,
claro_compiler = "@claro-lang//:bootstrapping_claro_compiler_binary",
Expand Down
2 changes: 1 addition & 1 deletion stdlib/cache/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ bootstrapped_claro_module_internal(
"//:future_converter",
],
visibility = ["//visibility:public"],
debug = True
export_module_api = False,
)

# TODO(steving) `module_api_file` should be concatenative like `srcs`.
Expand Down

0 comments on commit 7fd8342

Please sign in to comment.