File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,24 @@ def _toolchain_extension(module_ctx):
4949 mylang_version = selected ,
5050 register = False ,
5151 )
52+ return module_ctx .extension_metadata (
53+ # Return True if the behavior of the module extension is fully
54+ # determined by its inputs. Return False if the module depends on
55+ # outside state, for example, if it needs to fetch an external list
56+ # of versions, URLs, or hashes that could change.
57+ #
58+ # If True, Bazel omits information from the lock file, expecting that
59+ # it can be reproduced.
60+ reproducible = True ,
61+ )
5262
5363mylang = module_extension (
5464 implementation = _toolchain_extension ,
5565 tag_classes = {"toolchain" : mylang_toolchain },
66+ # Mark the extension as OS and architecture independent to simplify the
67+ # lock file. An independent module extension may still download OS- and
68+ # arch-dependent files, but it should download the same set of files
69+ # regardless of the host platform.
70+ os_dependent = False ,
71+ arch_dependent = False ,
5672)
You can’t perform that action at this time.
0 commit comments