Skip to content

Devfile Library should be updated to support Go 1.21 #1543

Closed
devfile/library
#212
@johnmcollier

Description

@johnmcollier

/kind bug
/area library

Trying to consume the devfile library with Go 1.21 reports the following errors:

github.com/devfile/library/v2/pkg/devfile/generator
/home/admin/go1.21/gopath/pkg/mod/github.com/devfile/library/v2@v2.2.1-0.20230418160146-e75481b7eebd/pkg/devfile/generator/utils.go:600:14: cannot use corev1.ResourceRequirements{…} (value of type "k8s.io/api/core/v1".ResourceRequirements) as "k8s.io/api/core/v1".VolumeResourceRequirements value in struct literal

It seems that some of its dependencies need to be updated to a version that supports Go 1.21. We should also ensure that there's nothing else in the library that's blocking it from working on 1.21.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/libraryCommon devfile library for interacting with devfiles

    Type

    No type

    Projects

    Status

    Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions