MCPcopy Index your code
hub / github.com/dagger/dagger / asModuleArgsForPendingModule

Function asModuleArgsForPendingModule

engine/server/session_workspaces.go:866–883  ·  view source on GitHub ↗
(mod pendingModule)

Source from the content-addressed store, hash-verified

864}
865
866func 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).

Callers 1

Calls 1

BuildLegacyAsModuleArgsFunction · 0.92

Tested by

no test coverage detected