Skip to content

Commit

Permalink
Merge pull request #751 from SUSE/node-for-sp5
Browse files Browse the repository at this point in the history
Switch nodejs 20 BCI to SLE 15 SP5 from SP6
  • Loading branch information
dirkmueller authored Nov 17, 2023
2 parents 7ab3a86 + 0f906f5 commit a8af918
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/bci_build/package/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import Literal

from bci_build.package import _SUPPORTED_UNTIL_SLE
from bci_build.package import CAN_BE_LATEST_OS_VERSION
from bci_build.package import LanguageStackContainer
from bci_build.package import OsVersion
from bci_build.package import SupportLevel
Expand All @@ -24,10 +25,7 @@ def _get_node_kwargs(ver: Literal[16, 18, 20], os_version: OsVersion):
return {
"name": "nodejs",
"os_version": os_version,
"is_latest": (
(ver == 18 and os_version == OsVersion.SP5)
or (ver == 20 and os_version == OsVersion.TUMBLEWEED)
),
"is_latest": ver == 20 and os_version in CAN_BE_LATEST_OS_VERSION,
"supported_until": _NODEJS_SUPPORT_ENDS.get(ver, None),
"package_name": f"nodejs-{ver}-image",
"pretty_name": f"Node.js {ver} development",
Expand Down Expand Up @@ -57,6 +55,9 @@ def _get_node_kwargs(ver: Literal[16, 18, 20], os_version: OsVersion):
LanguageStackContainer(
**_get_node_kwargs(18, OsVersion.SP5), support_level=SupportLevel.L3
),
LanguageStackContainer(
**_get_node_kwargs(20, OsVersion.SP5), support_level=SupportLevel.L3
),
LanguageStackContainer(
**_get_node_kwargs(20, OsVersion.SP6), support_level=SupportLevel.L3
),
Expand Down

0 comments on commit a8af918

Please sign in to comment.