incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

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

Open keon94 opened this issue 3 years ago • 2 comments

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.

keon94 avatar Aug 05 '22 05:08 keon94

PR: https://github.com/apache/incubator-devlake/pull/2694

keon94 avatar Aug 15 '22 14:08 keon94

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Sep 15 '22 00:09 github-actions[bot]

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.

github-actions[bot] avatar Sep 23 '22 00:09 github-actions[bot]