Skip to content

Commit

Permalink
Mark extension as reproducible
Browse files Browse the repository at this point in the history
This removes an unnecessary entry from the lockfiles of rules_fuzzing users.
  • Loading branch information
cerisier committed Feb 3, 2025
1 parent 1b9ddac commit 00772f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module(
version = "0.0.0",
)

bazel_dep(name = "bazel_features", version = "1.20.0")
bazel_dep(name = "abseil-cpp", version = "20240116.1", repo_name = "com_google_absl")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "platforms", version = "0.0.8")
Expand Down
8 changes: 7 additions & 1 deletion fuzzing/private/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@

"""Internal dependencies that are not Bazel modules."""

load("@bazel_features//:features.bzl", "bazel_features")
load("//fuzzing:repositories.bzl", "rules_fuzzing_dependencies")

def _non_module_dependencies(_):
def _non_module_dependencies(mctx):
rules_fuzzing_dependencies()

if bazel_features.external_deps.extension_metadata_has_reproducible:
return mctx.extension_metadata(reproducible = True)

return None

non_module_dependencies = module_extension(_non_module_dependencies)

0 comments on commit 00772f8

Please sign in to comment.