(mod pendingModule)
| 864 | } |
| 865 | |
| 866 | func asModuleArgsForPendingModule(mod pendingModule) ([]dagql.NamedInput, error) { |
| 867 | // Delegates to the shared builder so the workspace entrypoint path and the |
| 868 | // dependency-graph toolchain load path (loadDependencyModules) produce a |
| 869 | // byte-identical AsModuleVariantDigest salt for the same logical module. |
| 870 | args, err := schema.BuildLegacyAsModuleArgs( |
| 871 | mod.Name, |
| 872 | mod.LegacyDefaultPath, |
| 873 | mod.DefaultPathContextSourceRef, |
| 874 | mod.DefaultPathContextSourcePin, |
| 875 | mod.ConfigDefaults, |
| 876 | mod.DefaultsFromDotEnv, |
| 877 | mod.ArgCustomizations, |
| 878 | ) |
| 879 | if err != nil { |
| 880 | return nil, fmt.Errorf("build asModule args for %q: %w", mod.Ref, err) |
| 881 | } |
| 882 | return args, nil |
| 883 | } |
| 884 | |
| 885 | // serveAllResolvedModuleLoads serves all resolved primary modules and their |
| 886 | // related modules (blueprints, toolchains-of-toolchains). |
no test coverage detected