| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 1 | Check that vet errors are detected in a test run |
| 2 | |
| 3 | -- p.go -- |
| 4 | package p |
| 5 | |
| 6 | -- .commit -- |
| 7 | Initial commit |
| 8 | |
| 9 | -- p.go -- |
| 10 | package p |
| 11 | |
| 12 | import ( |
| 13 | "fmt" |
| 14 | ) |
| 15 | |
| 16 | func F() { |
| 17 | fmt.Printf("Not a string: %s\n", 10) |
| 18 | } |
| 19 | |
| 20 | -- .commit -- |
| 21 | Add vet error |
| 22 | |
| 23 | -- .run_test -- |
| Josh Bleecher Snyder | ffecb1e | 2025-04-28 18:59:14 +0000 | [diff] [blame] | 24 | # Errors |
| 25 | |
| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 26 | Test regressions detected between initial commit (656e4d573cb77a30ebce29ebb974533ece282946) and HEAD: |
| 27 | |
| 28 | 1: sketch.dev: Previously had no tests, now has build/vet errors |
| 29 | |
| 30 | |
| 31 | Gopls check issues detected: |
| 32 | |
| 33 | 1. /PATH/TO/REPO/p.go:8:2-38: fmt.Printf format %s has arg 10 of wrong type int |
| 34 | |
| 35 | IMPORTANT: Only fix new gopls check issues in parts of the code that you have already edited. Do not change existing code that was not part of your current edits. |
| 36 | |
| 37 | |
| 38 | Please fix before proceeding. |