-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
all: CI's enforcement of clean go generate
is lacking
#70954
Comments
go generate
state is dirty due to synctest
go generate
state is dirty due to synctest
Change https://go.dev/cl/638355 mentions this issue: |
I am opening this issue to question our testing procedure around It looks to me like we lack some |
go generate
state is dirty due to synctest
go generate
is lacking
Updates #70954 Change-Id: If5f9c8b8b820b1cc4e41e76b50038c6155b575a8 Reviewed-on: https://go-review.googlesource.com/c/go/+/638355 Reviewed-by: David Chase <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Pratt <[email protected]>
Some packages have their own test that checks that generated files are up to date (for example, see here and here). Generally, tests in GOROOT shouldn't write to GOROOT itself, so these tests take care not to do that, and instead make that functionality optionally available via a -fix/-write flag. There's also the cmd/internal/moddeps test which copies the entire tree to a temporary directory to make it easy to check for inconsistencies and report them, without writing to GOROOT itself. As the name implies, these tests are intended to check things that need to be regenerated and/or kept in sync after pulling in newer versions of dependencies. It can be easily added there. It'd be a bit odd to check these things there, but the advantage is that it's effortless and wouldn't require copying the tree an additional time. |
Change https://go.dev/cl/638582 mentions this issue: |
Go version
go version devel go1.24-110ab1aaf4 Sat Dec 21 08:22:08 2024 -0800 linux/amd64
Output of
go env
in your module/workspace:What did you do?
In the go repo:
What did you see happen?
What did you expect to see?
The text was updated successfully, but these errors were encountered: