blob: e5c195f35d719f94c3c8182a4e76d44ad48d8d10 [file] [log] [blame]
Josh Bleecher Snydercf191902025-06-04 18:18:40 +00001Test go generate error handling in mechanical checks
2
3-- go.mod --
4module sketch.dev
5
6go 1.23
7
8-- .commit --
9Initial commit
10
11-- main.go --
12package main
13
14//go:generate false
15
16func main() {
17 println("Hello, world!")
18}
19
20-- .commit --
21Commit with failing go generate directive
22
23-- .run_test --
24# Errors
25
26$ go generate sketch.dev
27main.go:3: running "false": exit status 1
28
29
30Please fix before proceeding.