You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Expected to find asset in release ${slug.owner}/${slug.repository}@${tag} with label ending in ${targetTriple}`,
198
+
`Expected to find asset in release ${slug.owner}/${slug.repository}@${tag} with label or name ending in ${targetTriple}`,
173
199
);
174
200
}
175
-
if(matchingTargetTriples.length>1){
201
+
202
+
if(matchingAssets.length>1){
176
203
thrownewError(
177
-
`Ambiguous targets: expected to find a single asset in release ${slug.owner}/${slug.repository}@${tag} matching target triple ${targetTriple}, but found ${matchingTargetTriples.length}.
204
+
`Ambiguous targets: expected to find a single asset in release ${slug.owner}/${slug.repository}@${tag} matching target triple ${targetTriple}, but found ${matchingAssets.length}.
178
205
179
206
To resolve, specify the desired binary with the target format ${slug.owner}/${slug.repository}/<binary-name>@${tag}`,
180
207
);
181
208
}
182
-
constasset=matchingTargetTriples.shift()!;
183
-
consttargetName=stripTargetTriple(asset.label!);
209
+
210
+
const{ asset, strategy }=matchingAssets[0]!;
211
+
212
+
// Apply stripTargetTriple based on the matching strategy
0 commit comments