From 8e9d165e75012eae8332f693292b06bf5ba441e7 Mon Sep 17 00:00:00 2001 From: MaineK00n Date: Sat, 25 Nov 2023 08:29:29 +0900 Subject: [PATCH] feat(os): add FreeBSD 14 (#1797) --- config/os.go | 1 + config/os_test.go | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/config/os.go b/config/os.go index 23505eba..e410b17a 100644 --- a/config/os.go +++ b/config/os.go @@ -317,6 +317,7 @@ func GetEOL(family, release string) (eol EOL, found bool) { "11": {StandardSupportUntil: time.Date(2021, 9, 30, 23, 59, 59, 0, time.UTC)}, "12": {StandardSupportUntil: time.Date(2023, 12, 31, 23, 59, 59, 0, time.UTC)}, "13": {StandardSupportUntil: time.Date(2026, 1, 31, 23, 59, 59, 0, time.UTC)}, + "14": {StandardSupportUntil: time.Date(2028, 11, 21, 23, 59, 59, 0, time.UTC)}, }[major(release)] case constant.Fedora: // https://docs.fedoraproject.org/en-US/releases/eol/ diff --git a/config/os_test.go b/config/os_test.go index c29a2d06..dffa4b41 100644 --- a/config/os_test.go +++ b/config/os_test.go @@ -542,6 +542,14 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) { extEnded: false, found: true, }, + { + name: "freebsd 14 supported", + fields: fields{family: FreeBSD, release: "14"}, + now: time.Date(2028, 11, 21, 23, 59, 59, 0, time.UTC), + stdEnded: false, + extEnded: false, + found: true, + }, // Fedora { name: "Fedora 32 supported",