Skip to content

Commit b175627

Browse files
fmeumclaude
andauthored
Update Bazel to 9.0.1 (#287)
- Updates `.bazelversion` from 8.4.2 to 9.0.1 - Handles `symlinks` and `root_symlink` in `runfiles` to support the new Bash runfiles library location --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7a7159c commit b175627

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.4.2
1+
9.0.1

fuzzing/private/oss_fuzz/package.bzl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,21 @@ def _oss_fuzz_package_impl(ctx):
3939
for runfile in binary_runfiles
4040
if runfile != binary_info.binary_file and not runfile_path(ctx, runfile).startswith(local_jdk_prefix)
4141
])
42+
43+
for symlink in binary_info.binary_runfiles.root_symlinks.to_list():
44+
archive_inputs.append(symlink.target_file)
45+
runfiles_manifest_content += "{path} {real_path}\n".format(
46+
path = symlink.path,
47+
real_path = symlink.target_file.path,
48+
)
49+
50+
for symlink in binary_info.binary_runfiles.symlinks.to_list():
51+
archive_inputs.append(symlink.target_file)
52+
runfiles_manifest_content += "{path} {real_path}\n".format(
53+
path = ctx.workspace_name + "/" + symlink.path,
54+
real_path = symlink.target_file.path,
55+
)
56+
4257
ctx.actions.write(runfiles_manifest, runfiles_manifest_content, False)
4358
archive_inputs.append(runfiles_manifest)
4459

0 commit comments

Comments
 (0)