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

Method Hash

internal/plugin/local.go:45–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func (l *LocalPlugin) Hash() string {
46 return cachehash.Bytes([]byte(filepath.Clean(l.Path())))
47}
48
49func (l *LocalPlugin) FileContent(subpath string) ([]byte, error) {
50 return os.ReadFile(filepath.Join(filepath.Dir(l.Path()), subpath))

Callers

nothing calls this directly

Calls 2

PathMethod · 0.95
BytesFunction · 0.92

Tested by

no test coverage detected