@@ -20,7 +20,7 @@ import (
2020var addWorkflowCompilationLog = logger .New ("cli:add_workflow_compilation" )
2121
2222// compileWorkflow compiles a workflow file without refreshing stop time.
23- // This is a convenience wrapper around compileWorkflowWithRefresh .
23+ // This is a convenience wrapper around compileWorkflowWithActionRef .
2424func compileWorkflow (ctx context.Context , filePath string , verbose bool , quiet bool , engineOverride string ) error {
2525 return compileWorkflowWithActionRef (ctx , filePath , verbose , quiet , engineOverride , "" )
2626}
@@ -29,12 +29,6 @@ func compileWorkflowWithActionRef(ctx context.Context, filePath string, verbose
2929 return compileWorkflowWithRefreshAndActionRef (ctx , filePath , verbose , quiet , engineOverride , actionRef , false , false )
3030}
3131
32- // compileWorkflowWithRefresh compiles a workflow file with optional stop time refresh.
33- // This function handles the compilation process and ensures .gitattributes is updated.
34- func compileWorkflowWithRefresh (ctx context.Context , filePath string , verbose bool , quiet bool , engineOverride string , refreshStopTime bool , approve bool ) error {
35- return compileWorkflowWithRefreshAndActionRef (ctx , filePath , verbose , quiet , engineOverride , "" , refreshStopTime , approve )
36- }
37-
3832func compileWorkflowWithRefreshAndActionRef (ctx context.Context , filePath string , verbose bool , quiet bool , engineOverride , actionRef string , refreshStopTime bool , approve bool ) error {
3933 addWorkflowCompilationLog .Printf ("Compiling workflow: file=%s, refresh_stop_time=%v, engine=%s, approve=%v" , filePath , refreshStopTime , engineOverride , approve )
4034
@@ -68,12 +62,6 @@ func compileWorkflowWithRefreshAndActionRef(ctx context.Context, filePath string
6862 return nil
6963}
7064
71- // compileWorkflowWithTracking compiles a workflow and tracks generated files.
72- // This is a convenience wrapper around compileWorkflowWithTrackingAndRefresh.
73- func compileWorkflowWithTracking (ctx context.Context , filePath string , verbose bool , quiet bool , engineOverride string , tracker * FileTracker ) error {
74- return compileWorkflowWithTrackingAndActionRef (ctx , filePath , verbose , quiet , engineOverride , "" , tracker )
75- }
76-
7765func compileWorkflowWithTrackingAndActionRef (ctx context.Context , filePath string , verbose bool , quiet bool , engineOverride , actionRef string , tracker * FileTracker ) error {
7866 return compileWorkflowWithTrackingAndRefreshAndActionRef (ctx , filePath , verbose , quiet , engineOverride , actionRef , tracker , false )
7967}
@@ -149,21 +137,13 @@ type compileDepsOptions struct {
149137 tracker * FileTracker
150138}
151139
152- // compileDispatchWorkflowDependencies compiles any dispatch-workflow .md dependencies of
153- // workflowFile that are present locally but lack a corresponding .lock.yml. This must be
154- // called before compiling the main workflow, because the dispatch-workflow validator
155- // requires every referenced .md workflow to have an up-to-date .lock.yml.
156- func compileDispatchWorkflowDependencies (ctx context.Context , workflowFile string , verbose , quiet bool , engineOverride string , force bool , tracker * FileTracker ) {
157- compileDispatchWorkflowDependenciesWithActionRef (ctx , workflowFile , verbose , quiet , engineOverride , "" , force , tracker )
158- }
159-
160140func compileDispatchWorkflowDependenciesWithActionRef (ctx context.Context , workflowFile string , verbose , quiet bool , engineOverride , actionRef string , force bool , tracker * FileTracker ) {
161141 compileSafeOutputsWorkflowDependencies (ctx , workflowFile , "dispatch-workflow dependency" , dispatchWorkflowNamesForCompilation , compileDepsOptions {
162142 verbose : verbose , quiet : quiet , engineOverride : engineOverride , actionRef : actionRef , force : force , propagateErrors : false , tracker : tracker ,
163143 })
164144}
165145
166- // compileCallWorkflowDependencies compiles any call-workflow .md worker dependencies of
146+ // compileCallWorkflowDependenciesWithActionRef compiles any call-workflow .md worker dependencies of
167147// workflowFile that are present locally but lack a corresponding .lock.yml. This must be
168148// called before compiling the main workflow, because the call-workflow validator requires
169149// every referenced .md worker to have an up-to-date .lock.yml.
@@ -172,10 +152,6 @@ func compileDispatchWorkflowDependenciesWithActionRef(ctx context.Context, workf
172152// the dynamic tool-generation path maps every worker .md to a .lock.yml reference, so a
173153// worker whose lock cannot be produced would leave the orchestrator referencing a file that
174154// does not exist.
175- func compileCallWorkflowDependencies (ctx context.Context , workflowFile string , verbose , quiet bool , engineOverride string , force bool , tracker * FileTracker ) error {
176- return compileCallWorkflowDependenciesWithActionRef (ctx , workflowFile , verbose , quiet , engineOverride , "" , force , tracker )
177- }
178-
179155func compileCallWorkflowDependenciesWithActionRef (ctx context.Context , workflowFile string , verbose , quiet bool , engineOverride , actionRef string , force bool , tracker * FileTracker ) error {
180156 return compileSafeOutputsWorkflowDependencies (ctx , workflowFile , "call-workflow worker" , callWorkflowNamesForCompilation , compileDepsOptions {
181157 verbose : verbose , quiet : quiet , engineOverride : engineOverride , actionRef : actionRef , force : force , propagateErrors : true , tracker : tracker ,
0 commit comments