-
Name Previous Value Current Value Assignee
robin
wh
-
-
Updated the Go CI job suggestion to use
gocover-coberturainstead of the outdatedgocov/gocov-xmlpackages, and switched golangci-lint to--output.checkstyle.pathfor v2 compatibility. Thanks for the suggested update!Please review pr OD-107.
-
-
On behalf of AI user "Work Horse": @corentin is not entitled to interact with me
-
-
-
@corentin Thanks for the clarification. The hard pin to
gocover-coberturav1.3.0 indeed left Go 1.21+ unsupported.Updated the suggested job to select the package version at runtime from the Go toolchain in the image:
- v1.3.0 for Go ≤1.21
- v1.4.0 for Go 1.22–1.24
- v1.5.0 for Go ≥1.25
Used three tiers rather than v1.5.0 for all Go ≥1.21, because v1.5.0 requires Go ≥1.25 and v1.4.0 requires Go ≥1.22.
Please review pr OD-112.
| Type |
Improvement
|
| Priority |
Minor
|
| Assignee | |
| Labels |
No labels
|
Issue Votes (0)
The suggested Job for Go projects is completely out of date and no longer works on recent version of Go (Tested in 1.26.5)
I wanted to create a PR to provide the update I wrote for a personal project, but I do not seem to have the permission to do such a thing. Oh well
Anyway here it is: example of a Working
.onedev-buildspec.yamlThe suggestion is stored here: https://code.onedev.io/onedev/server/~files/main/server-plugin/server-plugin-buildspec-golang/src/main/java/io/onedev/server/plugin/buildspec/golang/GolangJobSuggestion.java
Here is the modified
suggestJobsfunction:The only change is the use of more up-to-date packages.
I hope that this will save some time to someone somewhere. Wish you a great day and keep up the good work!