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

Function EnsureNixpkgsPrefetched

internal/devpkg/package.go:528–535  ·  view source on GitHub ↗

EnsureNixpkgsPrefetched will prefetch flake for the nixpkgs registry for the package. This is an internal method, and should not be called directly.

(ctx context.Context, w io.Writer, pkgs []*Package)

Source from the content-addressed store, hash-verified

526// EnsureNixpkgsPrefetched will prefetch flake for the nixpkgs registry for the package.
527// This is an internal method, and should not be called directly.
528func EnsureNixpkgsPrefetched(ctx context.Context, w io.Writer, pkgs []*Package) error {
529 for _, input := range pkgs {
530 if err := input.ensureNixpkgsPrefetched(w); err != nil {
531 return err
532 }
533 }
534 return nil
535}
536
537// ensureNixpkgsPrefetched should be called via the public EnsureNixpkgsPrefetched.
538// See function comment there.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected