The Unified and Autonomous Development Platform
fix(buildspec-golang): pin gocover-cobertura for older Go
Work Horsee5f47b1a21fe
diff --git a/server-plugin/server-plugin-buildspec-golang/src/main/java/io/onedev/server/plugin/buildspec/golang/GolangJobSuggestion.java b/server-plugin/server-plugin-buildspec-golang/src/main/java/io/onedev/server/plugin/buildspec/golang/GolangJobSuggestion.javaindex d5f06f0375..b26c92f990 100644--- a/server-plugin/server-plugin-buildspec-golang/src/main/java/io/onedev/server/plugin/buildspec/golang/GolangJobSuggestion.java+++ b/server-plugin/server-plugin-buildspec-golang/src/main/java/io/onedev/server/plugin/buildspec/golang/GolangJobSuggestion.java@@ -99,7 +99,7 @@ public class GolangJobSuggestion implements JobSuggestion {buildAndTest.getInterpreter().setCommands("" +"set -e\n" +"# Use double at to avoid being interpreted as OneDev variable substitution\n" +- "go install github.com/boumenot/gocover-cobertura@@latest\n" ++ "go install github.com/boumenot/gocover-cobertura@@v1.3.0\n" +"go install github.com/jstemmer/go-junit-report/v2@@latest\n" +"set +e\n" +"# Turn off vet as the \"check and lint\" step can do this \n" +