Skip to content

Commit

Permalink
Merge branch version/0-43-0-RC1 to adopt changes from PR #2967
Browse files Browse the repository at this point in the history
  • Loading branch information
as-builds committed Dec 20, 2023
2 parents fdf2946 + f68bce1 commit 5726bad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/runners/platforms/platforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"sort"
"strconv"
"strings"
"time"

"github.com/go-openapi/strfmt"

Expand Down Expand Up @@ -35,6 +36,10 @@ func makePlatformsFromModelPlatforms(platforms []*model.Platform) []*Platform {
var ps []*Platform

for _, platform := range platforms {
if platform.EndOfSupportDate != nil && time.Since(time.Time(*platform.EndOfSupportDate)) > 0 {
continue // ignore EOL platforms; the Platform will fail to resolve dependencies on them
}

var p Platform
if platform.Kernel != nil && platform.Kernel.Name != nil {
p.Name = *platform.Kernel.Name
Expand Down

0 comments on commit 5726bad

Please sign in to comment.