Skip to content

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Jan 20, 2026

Replace manual os.Getwd()/os.Chdir()/cleanup patterns with t.Chdir() in 4 test files:

  • cmd/root/completion_test.go
  • cmd/root/record_test.go
  • pkg/evaluation/save_test.go
  • pkg/skills/skills_test.go

Add forbidigo linter rule to prevent future use of os.Chdir() in tests.

Assisted-By: cagent

Replace manual os.Getwd()/os.Chdir()/cleanup patterns with t.Chdir()
in 4 test files:
- cmd/root/completion_test.go
- cmd/root/record_test.go
- pkg/evaluation/save_test.go
- pkg/skills/skills_test.go

Add forbidigo linter rule to prevent future use of os.Chdir() in tests.

Assisted-By: cagent
@dgageot dgageot requested a review from a team as a code owner January 20, 2026 07:27
Copy link
Member

@rumpl rumpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat

@rumpl rumpl merged commit 91475fe into docker:main Jan 20, 2026
5 checks passed
@dgageot dgageot mentioned this pull request Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants