@@ -151,21 +151,17 @@ _lock = rule(
151151 attrs = {
152152 "args" : attr .string_list (
153153 doc = "Public, see the docs in the macro." ,
154- mandatory = True ,
155154 ),
156155 "build_constraints" : attr .label_list (
157- mandatory = True ,
158156 allow_files = True ,
159157 doc = "Public, see the docs in the macro." ,
160158 ),
161159 "constraints" : attr .label_list (
162- mandatory = True ,
163160 allow_files = True ,
164161 doc = "Public, see the docs in the macro." ,
165162 ),
166163 "env" : attr .string_dict (
167164 doc = "Public, see the docs in the macro." ,
168- mandatory = True ,
169165 ),
170166 "existing_output" : attr .label (
171167 mandatory = False ,
@@ -176,17 +172,17 @@ modifications and the locking is not done from scratch.
176172""" ,
177173 ),
178174 "generate_hashes" : attr .bool (
179- mandatory = True ,
180175 doc = "Public, see the docs in the macro." ,
176+ default = True ,
181177 ),
182178 "srcs" : attr .label_list (
183179 mandatory = True ,
184180 allow_files = True ,
185181 doc = "Public, see the docs in the macro." ,
186182 ),
187183 "strip_extras" : attr .bool (
188- mandatory = True ,
189184 doc = "Public, see the docs in the macro." ,
185+ default = False ,
190186 ),
191187 "update_target" : attr .string (
192188 mandatory = True ,
@@ -358,22 +354,22 @@ def lock(
358354
359355 _lock (
360356 name = name ,
361- srcs = srcs ,
357+ args = args ,
358+ build_constraints = build_constraints ,
359+ constraints = constraints ,
360+ env = env ,
362361 existing_output = maybe_out ,
362+ generate_hashes = generate_hashes ,
363+ srcs = srcs ,
364+ strip_extras = strip_extras ,
365+ target_compatible_with = target_compatible_with ,
363366 update_target = update_target ,
364367 tags = [
365368 "local" ,
366369 "manual" ,
367370 "no-cache" ,
368371 "requires-network" ,
369372 ],
370- args = args ,
371- env = env ,
372- generate_hashes = generate_hashes ,
373- constraints = constraints ,
374- build_constraints = build_constraints ,
375- strip_extras = strip_extras ,
376- target_compatible_with = target_compatible_with ,
377373 )
378374
379375 # A target for updating the in-tree version directly by skipping the in-action
0 commit comments