(configPath, version string)
| 93 | } |
| 94 | |
| 95 | func diagnosticsRuntime(configPath, version string) string { |
| 96 | cwd, _ := os.Getwd() |
| 97 | exe, _ := os.Executable() |
| 98 | return fmt.Sprintf(`version: %s |
| 99 | generated_at: %s |
| 100 | go_version: %s |
| 101 | goos: %s |
| 102 | goarch: %s |
| 103 | num_cpu: %d |
| 104 | gomaxprocs: %d |
| 105 | num_goroutine: %d |
| 106 | cwd: %s |
| 107 | executable: %s |
| 108 | config_path: %s |
| 109 | `, version, time.Now().Format(time.RFC3339), runtime.Version(), runtime.GOOS, runtime.GOARCH, runtime.NumCPU(), runtime.GOMAXPROCS(0), runtime.NumGoroutine(), cwd, exe, configPath) |
| 110 | } |
| 111 | |
| 112 | func addDiagnosticsSummary(zw *zip.Writer, configPath, version string) error { |
| 113 | w, err := zw.Create("diagnostics.json") |
no outgoing calls
no test coverage detected