MCPcopy Create free account
hub / github.com/dagger/dagger / WithMainModule

Method WithMainModule

core/env.go:99–104  ·  view source on GitHub ↗
(mod dagql.ObjectResult[*Module])

Source from the content-addressed store, hash-verified

97}
98
99func (env *Env) WithMainModule(mod dagql.ObjectResult[*Module]) *Env {
100 cp := env.Clone()
101 cp.MainModule = mod
102 cp.deps = cp.deps.Append(NewUserMod(mod))
103 return cp
104}
105
106func (env *Env) WithModule(mod dagql.ObjectResult[*Module]) *Env {
107 cp := env.Clone()

Callers

nothing calls this directly

Calls 3

CloneMethod · 0.95
NewUserModFunction · 0.85
AppendMethod · 0.45

Tested by

no test coverage detected