MCPcopy
hub / github.com/go-task/task / NewCacheNode

Function NewCacheNode

taskfile/node_cache.go:18–25  ·  view source on GitHub ↗
(source RemoteNode, dir string)

Source from the content-addressed store, hash-verified

16}
17
18func NewCacheNode(source RemoteNode, dir string) *CacheNode {
19 return &CacheNode{
20 baseNode: &baseNode{
21 dir: filepath.Join(dir, remoteCacheDir),
22 },
23 source: source,
24 }
25}
26
27func (node *CacheNode) Read() ([]byte, error) {
28 return os.ReadFile(node.Location())

Callers 1

readRemoteNodeContentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…