Skip to content

[Refactor][Backend] Uplift Go to 1.18 (or 1.19) #2688

@keon94

Description

@keon94

What and why to refactor

1.19 was released a few days ago, and 1.18 now has been around for several revisions, so it should be stable. It brings many new
features, in particular generics which is something we can definitely use in our codebase. We should evaluate both, and at the very least uplift to the latest 1.18 revision.

Describe the solution you'd like

How to refactor?
The Dockerfiles need to be modified + the go.mod version. The gitextractor libgit2 needs to be manually built in the Dockerfile because it has to be pinned to v1.3.0. The newer alpine base images will be packaged with higher versions if we try to use the defaults, so we can't rely them as we have been.

Related issues

n/a

Additional context

Current Go version of Devlake is 1.17.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Staletype/refactorThis issue is to refactor existing code

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions