@@ -76,24 +76,17 @@ def _impl(ctx):
76
76
image_spec ["digest" ] = "," .join ([_runfiles (ctx , f ) for f in blobsums ])
77
77
all_inputs += blobsums
78
78
79
- if not ctx .attr .use_legacy_resolver :
80
- # Add additional files about the image used by the Go resolver
81
- # to load the image more efficiently.
82
- diff_ids = image .get ("diff_id" , [])
83
- image_spec ["diff_id" ] = "," .join ([_runfiles (ctx , f ) for f in diff_ids ])
84
- all_inputs += diff_ids
85
-
86
- blobs = image .get ("zipped_layer" , [])
87
- image_spec ["compressed_layer" ] = "," .join ([_runfiles (ctx , f ) for f in blobs ])
88
- all_inputs += blobs
89
-
90
- uncompressed_blobs = image .get ("unzipped_layer" , [])
91
- image_spec ["uncompressed_layer" ] = "," .join ([_runfiles (ctx , f ) for f in uncompressed_blobs ])
92
- all_inputs += uncompressed_blobs
93
- else :
94
- blobs = image .get ("zipped_layer" , [])
95
- image_spec ["layer" ] = "," .join ([_runfiles (ctx , f ) for f in blobs ])
96
- all_inputs += blobs
79
+ diff_ids = image .get ("diff_id" , [])
80
+ image_spec ["diff_id" ] = "," .join ([_runfiles (ctx , f ) for f in diff_ids ])
81
+ all_inputs += diff_ids
82
+
83
+ blobs = image .get ("zipped_layer" , [])
84
+ image_spec ["compressed_layer" ] = "," .join ([_runfiles (ctx , f ) for f in blobs ])
85
+ all_inputs += blobs
86
+
87
+ uncompressed_blobs = image .get ("unzipped_layer" , [])
88
+ image_spec ["uncompressed_layer" ] = "," .join ([_runfiles (ctx , f ) for f in uncompressed_blobs ])
89
+ all_inputs += uncompressed_blobs
97
90
98
91
image_spec ["config" ] = _runfiles (ctx , image ["config" ])
99
92
all_inputs += [image ["config" ]]
@@ -136,7 +129,7 @@ def _impl(ctx):
136
129
for spec in image_specs
137
130
]),
138
131
"%{resolver_args}" : " " .join (ctx .attr .resolver_args or []),
139
- "%{resolver}" : _runfiles (ctx , ctx .executable .resolver if ctx . attr . use_legacy_resolver else ctx . executable . go_resolver ),
132
+ "%{resolver}" : _runfiles (ctx , ctx .executable .resolver ),
140
133
"%{stamp_args}" : stamp_args ,
141
134
"%{yaml}" : _runfiles (ctx , ctx .outputs .substituted ),
142
135
},
@@ -148,7 +141,6 @@ def _impl(ctx):
148
141
runfiles = ctx .runfiles (
149
142
files = [
150
143
ctx .executable .resolver ,
151
- ctx .executable .go_resolver ,
152
144
ctx .outputs .substituted ,
153
145
] + all_inputs ,
154
146
transitive_files = ctx .attr .resolver [DefaultInfo ].default_runfiles .files ,
@@ -172,7 +164,7 @@ def _resolve(ctx, string, output):
172
164
)
173
165
174
166
def _common_impl (ctx ):
175
- files = [ctx .executable .resolver , ctx . executable . go_resolver ]
167
+ files = [ctx .executable .resolver ]
176
168
177
169
cluster_arg = ctx .attr .cluster
178
170
cluster_arg = ctx .expand_make_variables ("cluster" , cluster_arg , {})
@@ -272,12 +264,6 @@ _common_attrs = {
272
264
# don't expose the extra actions.
273
265
"cluster" : attr .string (),
274
266
"context" : attr .string (),
275
- "go_resolver" : attr .label (
276
- default = Label ("//k8s/go/cmd/resolver" ),
277
- cfg = "host" ,
278
- executable = True ,
279
- allow_files = True ,
280
- ),
281
267
"image_chroot" : attr .string (),
282
268
# This is only needed for describe.
283
269
"kind" : attr .string (),
@@ -286,18 +272,13 @@ _common_attrs = {
286
272
),
287
273
"namespace" : attr .string (),
288
274
"resolver" : attr .label (
289
- default = Label ("//k8s: resolver" ),
275
+ default = Label ("//k8s/go/cmd/ resolver" ),
290
276
cfg = "host" ,
291
277
executable = True ,
292
278
allow_files = True ,
293
279
),
294
280
# Extra arguments to pass to the resolver.
295
281
"resolver_args" : attr .string_list (),
296
- "use_legacy_resolver" : attr .bool (
297
- default = False ,
298
- doc = "Use the legacy python resolver if True. Use the experimental" +
299
- " Go resolver if false." ,
300
- ),
301
282
"user" : attr .string (),
302
283
"_stamper" : attr .label (
303
284
default = Label ("//k8s:stamper" ),
0 commit comments