Skip to content

Commit efa601e

Browse files
JAORMXclaude
andcommitted
Move shared git package from operator to pkg/git
The operator's git package (CloneConfig, Client interface, LimitedFs, DefaultGitClient) is needed by both the operator and the CLI for git-based skill installation. Move it to pkg/git/ so both can share it. Changes during move: - Replace controller-runtime/pkg/log with log/slog - Add WithAuth ClientOption for authenticated clones - Remove runtime.GC() call from Cleanup (unnecessary; Go GC handles it) - Update tests to use t.Context() instead of controller-runtime logger - Rewrite tests with testify assertions and t.TempDir() - Drop trivial field-accessibility tests and slow network-dependent tests No functional changes to the operator — the package was not yet imported by any operator code. Relates to #4015 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0791876 commit efa601e

File tree

11 files changed

+331
-991
lines changed

11 files changed

+331
-991
lines changed

cmd/thv-operator/pkg/git/client_test.go

Lines changed: 0 additions & 173 deletions
This file was deleted.

cmd/thv-operator/pkg/git/commit_test.go

Lines changed: 0 additions & 78 deletions
This file was deleted.

cmd/thv-operator/pkg/git/doc.go

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)