refactor: migrate from go-git to go-getter (#2512)

This commit is contained in:
Valentin Maerten
2025-12-18 12:21:30 +01:00
committed by GitHub
parent 2ebbb99f58
commit cb183349b7
6 changed files with 485 additions and 113 deletions

View File

@@ -204,9 +204,15 @@ func (o *promptFuncOption) ApplyToReader(r *Reader) {
// building an [ast.TaskfileGraph] as it goes. If any errors occur, they will be
// returned immediately.
func (r *Reader) Read(ctx context.Context, node Node) (*ast.TaskfileGraph, error) {
// Clean up git cache after reading all taskfiles
defer func() {
_ = CleanGitCache()
}()
if err := r.include(ctx, node); err != nil {
return nil, err
}
return r.graph, nil
}