You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use t.Chdir() instead of manual os.Chdir patterns in tests (#4660)
## Summary
- Replace manual working directory manipulation with `t.Chdir()`, added
in Go 1.24
- Remove `testutil.Chdir` and `testutil.TestData` which are now unused
- Add a gorule (`libs/gorules/rule_os_chdir.go`) that rejects `os.Chdir`
in `_test.go` files going forward
## Test plan
- [x] All affected package tests pass
- [x] `make lintfull` passes with 0 issues
- [x] Gorule correctly flags `os.Chdir` in test files
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments