MCPcopy Index your code
hub / github.com/jetify-com/devbox / addInput

Method addInput

internal/shellgen/flake_plan.go:148–159  ·  view source on GitHub ↗

addInput adds a flake input that provides pkg.

(pkg *devpkg.Package)

Source from the content-addressed store, hash-verified

146
147// addInput adds a flake input that provides pkg.
148func (g *glibcPatchFlake) addInput(pkg *devpkg.Package) error {
149 if g.Inputs == nil {
150 g.Inputs = make(map[string]string)
151 }
152 installable, err := pkg.FlakeInstallable()
153 if err != nil {
154 return err
155 }
156 inputName := pkg.FlakeInputName()
157 g.Inputs[inputName] = installable.Ref.String()
158 return nil
159}
160
161// addOutput adds a flake output that provides the patched version of pkg.
162func (g *glibcPatchFlake) addOutput(pkg *devpkg.Package) error {

Callers 2

addOutputMethod · 0.95
addDependencyMethod · 0.95

Calls 3

FlakeInstallableMethod · 0.80
FlakeInputNameMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected