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
// balena-semver is able to parse all OS versions that we support,
187
-
// so if it can't parse the given version string, then we can be sure
188
-
// that there can't be a hostApp release matching it.
189
-
if(parsedOsVersion==null){
190
-
return;
191
-
}
192
221
constreleases=awaitapi.get({
193
222
resource: 'release',
194
223
options: {
@@ -241,7 +270,7 @@ async function getOSReleaseResource(
241
270
// b/c balena-semver normalizes invalid semvers like
242
271
// 2022.01.0 to 2022.1.0 and that would no longer
243
272
// match the tag value.
244
-
value: normalizeOsVersion(osVersion),
273
+
value: normalizeOsVersion(parsedOsVersion.raw),
245
274
tag_key: 'version',
246
275
},
247
276
},
@@ -306,7 +335,7 @@ async function getOSReleaseResource(
306
335
const[release]=releases;
307
336
if(releases.filter((r)=>r.is_final).length>1){
308
337
ThisShouldNeverHappenError(
309
-
`Found more than one finalized hostApp release matching version ${osVersion}${osVariant} for device type ${deviceTypeId} and returned ${release.id}.`,
338
+
`Found more than one finalized hostApp release matching version ${parsedOsVersion.raw}${osVariant} for device type ${deviceTypeId} and returned ${release.id}.`,
0 commit comments