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

Method Build

internal/patchpkg/builder.go:95–103  ·  view source on GitHub ↗

Build applies patches to a package store path and puts the result in the d.Out directory.

(ctx context.Context, pkgStorePath string)

Source from the content-addressed store, hash-verified

93// Build applies patches to a package store path and puts the result in the
94// d.Out directory.
95func (d *DerivationBuilder) Build(ctx context.Context, pkgStorePath string) error {
96 if err := d.init(); err != nil {
97 return err
98 }
99
100 slog.DebugContext(ctx, "starting build to patch package",
101 "pkg", pkgStorePath, "glibc", d.Glibc, "out", d.Out)
102 return d.build(ctx, newPackageFS(pkgStorePath), newPackageFS(d.Out))
103}
104
105func (d *DerivationBuilder) build(ctx context.Context, pkg, out *packageFS) error {
106 // Create the derivation's $out directory.

Callers 1

patchCmdFunction · 0.95

Calls 3

initMethod · 0.95
buildMethod · 0.95
newPackageFSFunction · 0.85

Tested by

no test coverage detected