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

Method WithModule

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

Source from the content-addressed store, hash-verified

104}
105
106func (env *Env) WithModule(mod dagql.ObjectResult[*Module]) *Env {
107 cp := env.Clone()
108 cp.deps = cp.deps.Append(NewUserMod(mod))
109 cp.installedModules = append(cp.installedModules, mod)
110 return cp
111}
112
113func (env *Env) Privileged() *Env {
114 env = env.Clone()

Callers

nothing calls this directly

Calls 3

CloneMethod · 0.95
NewUserModFunction · 0.85
AppendMethod · 0.45

Tested by

no test coverage detected