Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed May 8, 2023
1 parent 7425e1c commit dea1f3c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ tasks:
- rm -f WORKSPACE.bak
- rm -rf $HOME/bazeltest
- mkdir $HOME/bazeltest
build_flags:
- "--test_env=TEST_INSTALL_BASE=$HOME/bazeltest/install_base"
- "--test_env=TEST_REPOSITORY_HOME=$OUTPUT_BASE/external"
- "--test_env=REMOTE_NETWORK_ADDRESS=bazel.build:80"
build_targets:
- "//src:bazel"
- "//src:bazel_jdk_minimal"
- "//src:test_repos"
- "//src/main/java/..."
test_flags:
- "--sandbox_default_allow_network=false"
- "--sandbox_writable_path=$HOME/bazeltest"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ public NoneType call(StarlarkThread thread, Tuple args, Dict<String, Object> kwa
if (!args.isEmpty()) {
throw Starlark.errorf("unexpected positional arguments");
}
System.err.println(ruleClass.getName() + ": " + args + ", " + kwargs);
if (ruleClass.getName().equals("java_runtime")) {
System.err.println(ruleClass.getName() + ": " + args + ", " + kwargs);
}
BazelStarlarkContext.from(thread).checkLoadingOrWorkspacePhase(ruleClass.getName());
try {
PackageContext context = PackageFactory.getContext(thread);
Expand Down
1 change: 1 addition & 0 deletions tools/jdk/jdk_build_file.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ filegroup(
),
)
print("java_runtime in " + repository_name() + ": " + str({RUNTIME_VERSION}))
java_runtime(
name = "jdk",
srcs = [
Expand Down

0 comments on commit dea1f3c

Please sign in to comment.