diff --git a/src/loader/loader.go b/src/loader/loader.go index 7d759d7..e3bff31 100644 --- a/src/loader/loader.go +++ b/src/loader/loader.go @@ -93,7 +93,6 @@ func loadExtendProject(p *types.Project, opts *LoaderOptions, file string, index log.Error().Err(err).Msgf("Failed to load the extend project %s", p.ExtendsProject) return fmt.Errorf("failed to load extend project %s: %w", p.ExtendsProject, err) } - copyWorkingDirToProcesses(project, filepath.Dir(p.ExtendsProject)) opts.projects = slices.Insert(opts.projects, index, project) err = loadExtendProject(project, opts, p.ExtendsProject, index) if err != nil { @@ -161,6 +160,7 @@ func loadProjectFromFile(inputFile string, opts *LoaderOptions) (*types.Project, } } + copyWorkingDirToProcesses(project, filepath.Dir(inputFile)) log.Info().Msgf("Loaded project from %s", inputFile) return project, nil }