diff --git a/config/os.go b/config/os.go index e5cb42b5..4c85b71a 100644 --- a/config/os.go +++ b/config/os.go @@ -317,6 +317,7 @@ func GetEOL(family, release string) (eol EOL, found bool) { "35": {StandardSupportUntil: time.Date(2022, 12, 12, 23, 59, 59, 0, time.UTC)}, "36": {StandardSupportUntil: time.Date(2023, 5, 16, 23, 59, 59, 0, time.UTC)}, "37": {StandardSupportUntil: time.Date(2023, 12, 15, 23, 59, 59, 0, time.UTC)}, + "38": {StandardSupportUntil: time.Date(2024, 5, 14, 23, 59, 59, 0, time.UTC)}, }[major(release)] case constant.Windows: // https://learn.microsoft.com/ja-jp/lifecycle/products/?products=windows diff --git a/config/os_test.go b/config/os_test.go index 59b4bbd0..967d6b81 100644 --- a/config/os_test.go +++ b/config/os_test.go @@ -624,9 +624,25 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) { found: true, }, { - name: "Fedora 38 not found", + name: "Fedora 38 supported", fields: fields{family: Fedora, release: "38"}, - now: time.Date(2023, 12, 15, 23, 59, 59, 0, time.UTC), + now: time.Date(2024, 5, 14, 23, 59, 59, 0, time.UTC), + stdEnded: false, + extEnded: false, + found: true, + }, + { + name: "Fedora 38 eol since 2024-05-15", + fields: fields{family: Fedora, release: "38"}, + now: time.Date(2024, 5, 15, 0, 0, 0, 0, time.UTC), + stdEnded: true, + extEnded: true, + found: true, + }, + { + name: "Fedora 39 not found", + fields: fields{family: Fedora, release: "39"}, + now: time.Date(2024, 5, 14, 23, 59, 59, 0, time.UTC), stdEnded: false, extEnded: false, found: false,