fix: allow 'run command' tasks to proceed in parallel to other repo operations
Build Snapshot Release / build (push) Waiting to run
Docs / build (push) Waiting to run
Docs / deploy (push) Blocked by required conditions
Release Please / release-please (push) Waiting to run
Test / test-nix (push) Waiting to run
Test / test-win (push) Waiting to run

This commit is contained in:
garethgeorge
2024-11-18 00:37:48 -08:00
parent cc4daee18c
commit 3397a011a3
+2 -3
View File
@@ -388,10 +388,9 @@ func (r *RepoOrchestrator) AddTags(ctx context.Context, snapshotIDs []string, ta
return nil
}
// RunCommand runs a command in the repo's environment. Output is buffered and sent to the onProgress callback in batches.
// RunCommand runs a command in the repo's environment.
// NOTE: this function does not lock the repo.
func (r *RepoOrchestrator) RunCommand(ctx context.Context, command string, writer io.Writer) error {
r.mu.Lock()
defer r.mu.Unlock()
ctx, flush := forwardResticLogs(ctx)
defer flush()