Skip to content

Commit 87429c1

Browse files
bug: two tools in the same repo would break git clone caching
1 parent c74db50 commit 87429c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/repos/get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (m *Manager) setup(ctx context.Context, runtime Runtime, tool types.Tool, e
5656
locker.Lock(tool.ID)
5757
defer locker.Unlock(tool.ID)
5858

59-
target := filepath.Join(m.storageDir, tool.Source.Repo.Revision, runtime.ID())
59+
target := filepath.Join(m.storageDir, tool.Source.Repo.Revision, tool.Source.Repo.Path, tool.Source.Repo.Name, runtime.ID())
6060
targetFinal := filepath.Join(target, tool.Source.Repo.Path)
6161
doneFile := targetFinal + ".done"
6262
envData, err := os.ReadFile(doneFile)

0 commit comments

Comments
 (0)