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

Function newPackageFS

internal/patchpkg/builder.go:399–404  ·  view source on GitHub ↗

newPackageFS returns a packageFS for the given store path.

(storePath string)

Source from the content-addressed store, hash-verified

397
398// newPackageFS returns a packageFS for the given store path.
399func newPackageFS(storePath string) *packageFS {
400 return &packageFS{
401 FS: os.DirFS(storePath),
402 storePath: storePath,
403 }
404}
405
406// Readlink returns the destination of a symlink.
407func (p *packageFS) Readlink(path string) (string, error) {

Callers 4

initMethod · 0.85
BuildMethod · 0.85
restoreMissingRefsMethod · 0.85
findCUDAMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected