mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
when checking extension compatibility, ignore the 'latest' tag on appSemVer
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
parent
189f017b2e
commit
eedad96d62
@ -365,7 +365,12 @@ export class ExtensionDiscovery extends Singleton {
|
||||
let isCompatible = isBundled;
|
||||
|
||||
if (manifest.engines?.lens) {
|
||||
isCompatible = semver.satisfies(appSemVer, manifest.engines.lens);
|
||||
const appSemVerLatestImplied = appSemVer;
|
||||
if (appSemVerLatestImplied.prerelease?.[0] === "latest") {
|
||||
/* remove the "latest" prerelease tag so as not to require the extension to specify it */
|
||||
appSemVerLatestImplied.prerelease = [];
|
||||
}
|
||||
isCompatible = semver.satisfies(appSemVerLatestImplied, manifest.engines.lens);
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user